Wordpress integration

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:

npm i -g @sitecloud/cli

Now connect to your account with:

sc login

Lets clone the Wordpress API starter project from GitHub:

git clone git@github.com:sitecloudhq/wordpress.git

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.