-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest ACF issue #39
Comments
Also there is no release with latest updates. |
The solution @marziolek works. However, whenever you have the same block on the page. It duplicates the data. Any fixes for that? As you can see I have the Story Block twice on the same page and the data is duplicated. |
Hey @marziolek, this solution seem to solve the "null" result issue, but like @JoeStantonCode, when you use a block twice in the same page, all fields take the first block iteration as value. Append with ACF Pro@6 |
@MKlblangenois do you have any suggestions on how we can handle repeaters? We are trying to pull in repeater data from an ACF Options screen and still reciving null values.
|
Hi, I got the same issue regarding duplicates data. Do you guys have any workaround to solve this? |
For anyone who still looking for solution of duplicate value issue, this code might help.
Add this block code to your functions.php on your theme or create a custom wordpress plugin. This issue caused by missing block id on Custom Gutenberg Block by ACF, since ACF 6.0 no longer save block IDs. Ref to this article here Hope this will help other. Happy coding :) |
https://github.com/pristas-peter/wp-graphql-gutenberg-acf/blob/develop/plugin.php#L86
$root['attributes']['id']
should be updated with
$root['postId']
If there are no inner blocks. There should be some check for inner blocks or just simple check like this
ACF Pro 6.0.3
The text was updated successfully, but these errors were encountered: