Need help with gatsby-wpgraphql-blog-example?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

152 Stars 37 Forks MIT License 18 Commits 18 Opened issues


Demo showing how to use WPGraphQL as the source for Gatsby Sites

Services available


Need anything else?

Contributors list


This repository serves as an example of how to build a Gatsby site using WordPress as the CMS, WPGraphQL as the API and Gatsby Source GraphQL as the data source.

This example repo should no longer be considered "the best" way to use Gatsby and GraphQL anymore. Instead of using Gatsby Source GraphQL, we recommend using Gatsby Source WordPress Experimental, which will soon become the official Gatsby Source WordPress.

You can read more about why previous versions of Gatsby Source WordPress and Gatsby Source GraphQL are not ideal, and why Gatsby is investing in the new Gatsby Source WordPress Experimental plugin in this WPTavern article:

Gatsby Gatsby

Gatsby + WPGraphQL Blog Example

This is an example Gatsby site using WPGraphQL as the source.

WordCamp Talk

This repo was created specifically for showcasing the capabilities of WPGraphQL and how it can be used in many ways. One particular use is with GatsbyJS. The WordCamp talk this repo was created for can be seen here:


Quick video showing setup of the Gatsby site locally:

WordPress Source

The WordPress where the content is managed lives here:

Screenshot of the WordPress source site

Gatsby Site

The Live Gatsby site is at:

Screenshot of the Gatsby site


Below are features of the Gatsby site that are all sourced via WPGraphQL Queries, so the data is managed in WordPress, but is pulled into the Gatsby site and rendered there:

  • :whitecheckmark: Menus
  • :whitecheckmark: Pages
  • :whitecheckmark: Paginated Blogroll/homepage
  • :whitecheckmark: Single Posts
  • :whitecheckmark: Authors
  • :whitecheckmark: Categories
  • :whitecheckmark: Tags

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.