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' ), ));
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!
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!
© 2022 Advanced Custom Fields.