Courses & TutorialsProgramming

Awesome WordPress Gatsby – Massive Collection of Resources

Spread the love

A curated list of resources about WordPress as a headless CMS with Gatsby as a Static Site Generator (SSG).

A headless CMS is a back-end only content management system (CMS). Its purpose is to serve content and make it accessible via an API (e.g. REST or GraphQL).

A Static Site Generator (SSG) is a framework or setup, that helps you to generate static websites (HTML/CSS/JS). The source of your data can be anything from local files (e.g. text files or markdown) to APIs (e.g. REST, GraphQL).

Why Gatsby and WordPress?

WordPress is one of the most used CMS in the world and therefore many people already know how to work with it. The typical front-end approach with PHP-based templates is getting more and more problematic in an environment where performance is key. The approach to use WordPress as a headless CMS with normal API calls through JavaScript already exists, but also has the downside of having to make requests to the server and rendering depending on the response. This adds time to load. Gatsby instead, pre-renders the whole site at compile time and therefore the user gets a fully prepared static site on their first request, making it one of the best approaches for performance. Another huge benefit is security, as your WordPress instance can be anywhere, even locally and you don’t need to expose any of it to the user. The static Gatsby site therefore, is not hackable. Find further arguments for pros and cons in the resources below.



If you need help with anything, there are some highly active communities.




List of articles, that talk about the technology stack in general.


List of useful plugins to make WordPress and Gatsby work together.


  • WPGraphQLDocumentation – WPGraphQL brings the power of GraphQL to your WordPress site.
  • WPGraphQL for Advanced Custom Fields – Exposes Advanced Custom Fields to the WPGraphQL Schema.
  • WPGraphQL Polylang Extension – Extends WPGraphQL schema with language data from the Polylang plugin.
  • WPGraphQL Gutenberg – Exposes Gutenberg blocks to the WPGraphQL API.
  • WPGraphQL Gutenberg ACF – Exposes ACF blocks through GraphQL
  • WPGraphQL Meta Query – Adds Meta_Query support to the WPGraphQL Plugin for postObject query args.
  • WPGraphQL Tax Query – Adds Tax_Query support to the WPGraphQL Plugin for postObject query args (WP_Query).
  • WPGraphQL JWT Authentication – Extends the WPGraphQL plugin to provide authentication using JWT (JSON Web Tokens).
  • WPGraphQL Lock – Enables query locking for WPGraphQL by implementing persisted GraphQL queries.
  • QL Search – An extension that integrates SearchWP into WPGraphQL.
  • WPGraphQl Yoast SEO Plugin – Exposes Yoast SEO data to the WPGraphQL Plugin.
  • WPGraphiQL – Extends the WordPress dashboard with a GraphiQL IDE.
  • WP API Menus – Extends the WordPress JSON REST API with new routes for WordPress registered menus.
  • WP JAMstack Deployments – WordPress plugin for JAMstack deployments on Netlify (and other platforms).
  • Headless Mode – Headless mode sets up a redirect for all users trying to access the site. The only requests that are granted admission are ones that are either trying to access the REST API, the WP GraphQL API, or any logged-in user looking to access the headless install to edit or create posts.

The obvious, that goes along with some of the plugins above:



Note: We differentiate between two ways of using WordPress with Gatsby. There is the gatsby-source-wordpress plugin, that creates a Gatsby-GraphQL schema based on the WP REST API and there is the WPGraphQL way, that pulls directly from a GraphQL schema with the gatsby-source-graphql plugin.

Written Tutorials




Video Tutorials



  • 2018.03: Gatsby.js + WordPress – In this mini-series the developer tries to create a website using Gatsby.js and WordPress.


List of project starters, that you can clone and start building upon.


List of gatsby-themes that work with WordPress as a source, which you can use in your Gatsby setup.

  • Twenty Nineteen Gatsby Theme – A port of the Twenty Nineteen WordPress Theme over to Gatsby.
  • Gatsby WordPress Publisher Theme
    – The Gatsby Publisher Theme allows you to create a headless (or decoupled) WordPress site. This theme will display all of your pages and posts in a static front-end built on React and Gatsby.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button