Studio projects are easily integrable with Wordpress API using custom components. We have built for you a starter project which shows how easy is to integrate both services.
First, you will need to install the Sitecloud CLI:
Now connect to your account with:
Lets clone the Wordpress API starter project from GitHub:
This starter projects include two components:
- BlogIndex: This component will render an index of the blog entries served by your Wordpress.
- BlogPost: This component will render a specific blog post.
In both components you will find a
WP_API_URL that you will need to modify with the URL of your Wordpress API. You can follow all the instructions in the Building your first component section to customize the components and the Publishing Components to learn how to publish them.