B
B
balanana2020-11-03 21:57:51
JavaScript
balanana, 2020-11-03 21:57:51

Why does gatsby need its own WordPress template?

Good afternoon, the following question arose, when using WordPress as a backend, why frameworks like Getsby cannot pull up the layout from WordPress itself, it would be easy to change templates, why is this not implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bychkov, 2020-11-05
@balanana

Gatsby is an html compiler for React. And Wordpress does not have its own template engine. That's why it's not implemented. If you want to use Wordpress as a backend, I advise you to dig towards the WP REST API. And Redux pull the data, or something else. A good library for WPAPI work for a node.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question