Using WordPress as a Source for Gatsby
summary
Shows how to use WordPress as a headless CMS for Gatsby with concrete tooling: WPGraphQL and WPGraphQL ACF expose custom post types (Projects) and ACF flexible content into Gatsby, gatsby-source-graphql wires GraphQL in, and images are fetched into the build via createRemoteFileNode then optimized with gatsby-image. Demo includes replacing REST queries (100-post example) with targeted GraphQL, drag‑and‑drop flexible layouts rendered by mapping typename fragments, and Netlify webhook deploys for content updates.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker background
- 1:07Benefits of WordPress as Gatsby source
- 2:33Why WPGraphQL over REST API
- 3:58Plugins setup and Netlify webhooks
- 4:44Configuring gatsby-source-graphql
- 5:33Custom post types in WordPress
- 6:45Downloading images for gatsby-image
- 8:40Using gatsby-image in components
- 9:26Introduction to ACF and WPGraphQL ACF
- 10:40Creating custom fields with ACF
- 11:44Flexible content in ACF
- 13:16Rendering flexible content in Gatsby
- 14:01Live demo building a page
- 17:06Demo results and styling
- 17:30Conclusion and resources
