Gutenberg not saving blocks
-
HI,
I am using ACF Pro for creating custom blocks for my WordPress page.
https://dashboard.thinkmoto.de/wp-content/uploads/2022/12/GUTENBERG.mov
As you can see in the video, everything works perfectly at the beginning, but when I reload the Gutenberg Editor Page, the content (custom blocks and default blocks) is removed (but the front end keeps working).
I think the problem is on the Gutenberg side, because when I installed “Classic Editor Plugin” the content was saved correctly (but of course I cannot use the ACF Pro Blocks).
Why is Gutenberg not showing the content?
I am working with:
– WordPress 6.1.1 (latest version)
– ACF Pro Version 6.0.6
This is how I register a new block:add_action('acf/init', 'my_acf_init'); function my_acf_init() { // check function exists if( function_exists('acf_register_block_type') ) { // register a Case Reel Block acf_register_block_type(array( 'name' => 'casereel', 'title' => __('Case Reel'), 'description' => __('TM - Case Reel Block.'), 'render_template' => 'template-parts/blocks/casereel/casereel.php', 'render_callback' => 'my_acf_block_render_callback', 'category' => 'formatting', 'icon' => 'format-video', 'keywords' => array( 'casereel', 'quote' ), )); } }
Let me know if you would need more details about my configuration.
Thanks!
- The topic ‘Gutenberg not saving blocks’ is closed to new replies.