Support

Account

Home Forums Gutenberg Gutenberg blocks are not displaying ACF custom block content

Solving

Gutenberg blocks are not displaying ACF custom block content

    • teetl6

    • June 21, 2019 at 11:52 pm

    Hi

    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?

    • teetl6

    • June 26, 2019 at 7:56 pm

    up!

  • Are you using ACF Pro and have you created templates for your Gutenberg Blocks and called them via: acf_register_block()?

    Example:

    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' ),
    		));
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.