Gatsby Wordpress ACF won't exposed fields if not used #26877
Replies: 2 comments
-
Hi, thanks for the issue! You'll want to use Schema Customization to explicitly define the I'd also encourage you to try out https://github.com/gatsbyjs/gatsby-source-wordpress-experimental as it'll also fix your issue with that, see: https://github.com/gatsbyjs/gatsby-source-wordpress-experimental/blob/master/docs/problems-with-v3.md
|
Beta Was this translation helpful? Give feedback.
-
Thanks, I'm currently trying v4 but I faced some issues. Overall very good update 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is so simple yet so frustrating!
I created a custom field in ACF and try to fetch data using
gatsby-source-wordpress
plugin in my blog posts.If I don't use that custom field in any of my blog posts(in Wordpress admin panel when i try to publish or edit a post), gatsby graphql schema won't create that filed and I cannot query to get data. is there any way to edit graphql schema that comes from this plugin?
I want to be able to query this field if exists, if not it should return
null
. but field should be there in the schema in the first place otherwise build would fail!My query:
The error I get:
Beta Was this translation helpful? Give feedback.
All reactions