-
Notifications
You must be signed in to change notification settings - Fork 122
ACF Select Field can't return Array format #318
Comments
I'm facing a similar issue. Did you find any solutions yet? |
Nope 😕. I'm handling it in frontend. |
I'm also facing the same issue |
The same for me. Did anyone found any workaround? |
+1 for this issue. I'm also facing it. |
This has been resolved in the new version of WPGraphQL for ACF being re-architected here: https://github.com/wp-graphql/wpgraphql-acf That version of the plugin is what we'll be supporting going forward. It's a complete rewrite of the plugin and will be moving from beta to stable in the near future. We recommend making the switch sooner than later. A formal upgrade guide and docs will be out soon! |
Ah, perhaps I mis-spoke about this being resolved fully in the new version? We do have this open issue on the new repo as well, which seems to relate to this: wp-graphql/wpgraphql-acf#105 |
For some reason, I can't use the Array for return format and it throws an error.
I also saw #296 , #267 and #31, but none of them has a solution for a Headless WordPress. (My frontend is made with react, so theme functions doesn't help)
Plugin Versions:
This is my field:
I created a sample post and selected "green" and "blue". This is what happens:
Works correctly when I choose "value" as Return Format:
Works correctly when I choose "label" as Return Format:
Throws error when I choose "Array (Both) as Return Format:
And this is the error explanation when I turn on the Debug mode:
How can I fix this?
(also on StackExchange)
The text was updated successfully, but these errors were encountered: