I made custom Gutenberg blocks with ACF and using custom fields there (only one field per block). But when building post/page content in block editor then blocks are just showing blank area although content in custom fields are filled. Somekind of bug/conflict for Gutenberg + ACF?
Are you using ACF Pro and have you created templates for your Gutenberg Blocks and called them via: acf_register_block()?
acf_register_block(array( 'name' => 'accordian', 'title' => __('Accordian'), 'description' => __('A custom accordian block.'), 'render_callback' => 'my_acf_block_render_callback', 'category' => 'formatting', 'icon' => 'no', 'keywords' => array( 'testimonial', 'quote' ), ));
I’m having this same issue at the moment. Did you ever figure out a solution?
Yes, after i created block template and coded it to show data (loop or show some fields etc) then Gutenberg started to show content inside blocks.
Sounds like a typo somewhere. Can you give the code of one of the broken blocks?
hi @ll 🙂
I have the same issue now, I test it with the testimonial https://www.advancedcustomfields.com/blog/acf-5-8-introducing-acf-blocks-for-gutenberg/
The custom-blocks for enter some content are not displayed, only the area of testimonial, but no fields to enter the content. I use WordPress 5.2.4 / Theme Twenty Seventeen. I tried the latest ACF PRO version and version 5.8.0-beta4.1 – Unfortunately without success.
I’ve also seen the problem in GitHub, where Elliot wrote a solution.
Unfortunately there is no path in the current WordPress version anymore, I can’t find the “includes/gutenberg/assets/js/acf-blocks.js”.
@teetl6 – can you give mne your code-solution?
does anyone still have any idea why the custom blocks aren’t displayed?
Is it a ThemeProblem or Gutenberg?
Thank you in advance for your help!
ve the solution, it was my mistake, that I dont have choose the “BLOCK” in the main-editor position (I just didn’t see it) – before I choose just “POST” – Now it works great.. sometimes is so easy – I’m getting glasses. 🙂
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Another heads up for next months #WPCafe. I hope you have been enjoying the monthly #WordPress chats we have been having with some great guests.— Mark Wilkinson (@wpmark) September 25, 2020
Next month is pricing WP products and services with @tom_hirst & @jackmcconnell
Watch previous episodes 👇https://t.co/IN2z2f0WSp
© 2020 Advanced Custom Fields. Subscribe