Support

Account

Home Forums ACF PRO Gutenberg block preview for content, that comes from post object

Unread

Gutenberg block preview for content, that comes from post object

  • I have a gutenberg block registered with ACF PRO. In this block I’m rendering content from different custom post via post object

    $section_id = get_field( 'select_section' );
    if ( empty( $section_id ) ) {
    return;
    }
    
    $get_post = get_post( $section_id );
    echo apply_filters( 'the_content', $get_post->post_content );

    The problem is – The content for this block isn’t shown in gutenberg preview in edit page. The div with a class “acf-block-preview” is empty for this block.

    The console shows multiple informations like that:

    “Preload check 669eb4fb0ac42f0e1577d82b49087ba4 a0526df1-80b5-4ce1-9330-ccf1736fa8c5 false”

    I’m assuming, this preload check is linked to this gutenberg block, that doesn’t show on edit page.

    What is wrong and how to debug it?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.