• 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi @jordithinkmoto – to rule out a plugin or theme conflict, as a test, could you please try temporarily deactivating all plugins aside from ACF Pro, and using a default theme like Twenty Twenty-Three. You can use the Health Check plugin’s troubleshooting mode for this, which will not change your live site – https://www.ads-software.com/plugins/health-check/

    If you’re able to save your blocks, you can reactivate plugins and your theme one at a time – testing in between each – to find the conflict.

    Let me know how it goes!

    Thread Starter jordithinkmoto

    (@jordithinkmoto)

    Hi Kathryn,
    I’m using a child theme of Twenty Twenty-Three. Doo you think this could be the problem? I have already deactivated all plugins and the same problem is happening.

    Thanks a lot!

    Moderator Kathryn Presner

    (@zoonini)

    Hi @jordithinkmoto

    I’m using a child theme of Twenty Twenty-Three. Doo you think this could be the problem?

    It certainly could be, it depends what you’ve done in your child theme. ??

    Try activating the Twenty Twenty-Three parent theme (either within Health Check’s troubleshooting mode or on the live site, as you’re comfortable) and see if the issue goes away.

    If the problem remains, I’d suggest temporarily activating Twenty Twenty-Two in troubleshooting mode to see if that solves the issue.

    Let me know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gutenberg not saving blocks’ is closed to new replies.