Gatsby & WordPress - 2.5. - ACF and GraphQL

by Jack Pritchard

Hey! Just so you know, this article is over 2 years old. Some of the information in it might be outdated, so take it with a grain of salt. I'm not saying it's not worth a read, but don't take everything in it as gospel. If you're curious about something, it never hurts to double-check with a more up-to-date source!

In this video I'll be covering ACF and the WPGraphQL plug-in, and how we can raise some of the ACF fields on custom post types into the schema.

I've gone ahead and synchronized my database with my current live environment so I've got access to a ton of actual data now to preview some demos. I've got access to my media, pages, and case studies.

I'll be looking at the event post types specifically in this video where I have some advanced custom fields for every event that I create -

By default, these custom fields don't show in our Schema but I'll be going into how you can configure the field groups so that they are risen in our schema and accessible in our GraphQL queries.