Daniel Tonon
Daniel Tonon

Reputation: 10442

Gatsby: How do you get ACF (Advanced Custom Fields) to work with "gatsby-source-wordpress" plugin?

I tried following along to this tutorial but it is using a much older version of the API than the current version so it didn't work:

https://www.youtube.com/watch?v=8PAV_9JKW48

Upvotes: 1

Views: 3563

Answers (1)

Daniel Tonon
Daniel Tonon

Reputation: 10442

Ok, so apparently you need the WPGraphQL for Advanced Custom Fields plugin for it to work.

Download the latest version as a zip from the GitHub releases page, then install it into your WordPress instance by uploading the zip folder (Plugins > add new > Upload Plugin).

Make sure that the "show in GraphQL" checkbox is checked on any advanced custom fields that you make or they won't appear in the GraphQL output.

These are all the WordPress plugins that you need to make everything run smoothly:

Restart Gatsby once everything is installed.

Upvotes: 4

Related Questions