Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 1.58 KB

README.md

File metadata and controls

66 lines (53 loc) · 1.58 KB

Gatsby

Nomatives - Starter project

🔥 Quick start

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

  1. 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

  2. Polylang. Install the plugin: Polylang in wordpress

    Then Polylang integration for the WP REST API in wordpress: https://github.com/kadukeitor/wp-api-polylang

  3. 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",
        ],
      },
 }