PLUGINS INSTALLED:
- gatsby-source-wordpress
- gatsby-plugin-sass
- gatsby-plugin-offline
- gatsby-plugin-sharp
- gatsby-plugin-manifest
- gatsby-transformer-sharp
- gatsby-source-filesystem
- gatsby-plugin-react-helmet
After develop you need to install the following plugins in WordPress
-
ACF Advanced custom fields. 1.- Install the plugin: Advanced Custom Fields in wordpress
2.- Install the plugin ACF-TO-REST-API in WordPress: http://github.com/airesvsg/acf-to-rest-api
-
Polylang. Install the plugin: Polylang in wordpress
Then Polylang integration for the WP REST API in wordpress: https://github.com/kadukeitor/wp-api-polylang
-
Yoast SEO.
Install the plugin Yoast SEO in wordpress and then Yoast to REST API https://github.com/maru3l/wp-api-yoast-meta
After this, you need to edit the gatsby-config.js file, in the section:
{
resolve: `gatsby-source-wordpress`,
options: {
baseUrl: "https://your-wordpress-page.here", // HERE <-
protocol: "http",
hostingWPCOM: false,
useACF: true,
verboseOutput: false,
includedRoutes: [
"**/categories",
"**/posts",
"**/pages",
"**/media",
"**/tags",
"**/taxonomies",
"**/users",
],
},
}