Home Forums Gutenberg ACF Gutenberg block isn't selectable


ACF Gutenberg block isn't selectable

  • I’m just starting to use the Gutenberg editor for all my ACF needs now. However, after registering the block it can be selected in the ACF field creator under blocks > Test & assigned a field. However, it’s not displaying as an option with the Gutenberg blocks drop-down on a page?

    WP Version: 5.3.2
    ACF Pro Version: 5.8.7

    if (function_exists('acf_register_block_type')) {
        add_action('acf/init', 'register_acf_block_types');
    function register_acf_block_types(){
        acf_register_block_type( array(
            'name'              => 'test',
            'title'             => __('test'),
            'description'       => __('A test'),
            'render_template'   => 'templates/blocks/textarea.php',
            'icon'              => 'editor-paste-text',
            'keywords'          => array('test', 'testing'),
  • I have similar problem with registering blocks. I have also WP Version: 5.3.2
    and ACF Pro Version: 5.8.7.
    It doesn’t work on server with PHP 5.6, but it works on another server with PHP 7.x. Can be reason?

  • Same problem. Same versions.

  • I have a possibly related issue: if I use acf_register_block_type on the acf/init hook, the block doesn’t render in the frontend. If I use the init hook, it works. This appears to be a new problem, as my code was working fine in December.

Viewing 4 posts - 1 through 4 (of 4 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.