Support

Account

Home Forums Gutenberg allowedBlocks with acf namespace not working..

Unread

allowedBlocks with acf namespace not working..

  • I can’t get allowedBlocks to work with acf blocks, for instance:

    <?php $allowed_inner_blocks = [‘acf/masonry_block’,’core/image’]; ?>
    <InnerBlocks allowedBlocks=”<?php echo esc_attr(wp_json_encode($allowed_inner_blocks)); ?>” />

    core/image will work in this way but the custom block masonry_block will not, is acf/masonry_block the correct namespace, or does the parent need defining in the acf_register_block function?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.