Using Custom ACF Group in Block Editor

Using Custom ACF Group in Block Editor
/*register custom flexible section*/
add_action('acf/init', 'my_acf_init_block_types');
function my_acf_init_block_types() {

if( function_exists('acf_register_block_type') ) {
    acf_register_block_type(array(
    'name'              => 'flexible-content',
    'title'             => __('Flexible Content'),
    'description'       => __('A custom Flexible Content block.'),
    'render_template'   => 'templates/template-common.php',
    'category'          => 'formatting',
    'icon'              => 'admin-comments',
    'keywords'          => array( 'flexible' ),
    ));
}
}

screen106

screen107

Leave a Reply

Your email address will not be published. Required fields are marked *