Support

Account

Home Forums Gutenberg ACF Gutenberg block isn't selectable

Helping

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

    <?php
    
    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?

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