A late reply but I thought I would include a snippet that worked for me.
Update $allowed_inner_blocks
with your own “block_types” and place the following code inside the parent block template;
<?php $allowed_inner_blocks = ['acf/logos']; ?>
<InnerBlocks allowedBlocks="<?php echo esc_attr(wp_json_encode($allowed_inner_blocks)); ?>" />
Related Posts:
- Display all values of custom a field created with ACF on a page
- Removing Default Gutenberg Blocks, But Keeping Reusable Block Functionality?
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- If Custom Field is empty don’t display div
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- The values of custom fields are not available functions.php
- Problem with ACF shortcode with Repeater Field in WordPress? [closed]
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- Gutenberg custom block using only register_block_type() and HTML
- Include a Gutenberg Block in a PHP file
- Create custom blocks for bootstrap
- Advanced Custom Fields: Post Object – Not returning data [closed]
- ACF: Only get first row of a Repeater Field
- Register JS for block on frontend only
- Importing hard coded custom field into acf field
- Strip characters, Including spaces, for tel: link
- How can I add multiple ‘tax_query’ arrays via a loop?
- Change output based on text field value
- Using Advanced Custom Fields to create a per page slider
- Display PHP within HTML values
- Displaying admin notices inside the block editor from rest_after_insert_{$this->post_type} hook
- Best way to add more options to Gutenberg “More Rich” text controls drop down
- Saving an array of dynamic repeater data as post_meta
- Fetch post block/field data as JSON with WordPress API
- Where to find documentation for CPT block template? (PHP)
- Unread Repeater field IMG alt not working
- Unable to write multiple values back to ACF user field – PHP
- Update grandchild repeater field with value per row
- Slick + PHP + ACF + JQuery slide reveal not working
- Sort by page information by Ascending Numbers
- Advanced Custom Fields not displaying
- Download PDF after CF7 form submission
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- Upload non-featured image to image field
- Multiple requests external data api dynamic block gutenberg
- HTML Special Characters in URL string [closed]
- How to keep the capability of users and disable Gutenberg editor in WordPress?
- Passing the name of selected color from the custom component to `render_callback`
- Form search query – displaying ACF “Post Object” field as results
- Accessing values from ACF sub field (flexible content area) in PHP
- Creating an image from a custom field
- Get ACF options field in PHP acting as CSS
- ACF & Bootstrap Gallery Shows Blank Slides [closed]
- ACF Repeater Pagination stopped working since upgrade to php7.2
- How can I count ACF sub_field with a certain value
- Refactoring long if/else php chains
- Getting taxonomy category Image from ACF [closed]
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Show get_sub_field value if it exists [closed]
- Update post meta – Custom field does not match meta-key
- Advanced Custom Fields [closed]
- Get All In One SEO Pack to use custom field instead of Content
- Display Post Title From Select Choice Loop in Advanced Custom Fields (ACF) – WordPress
- Add class to all img if they have a certain ACF field
- Additional file upload in Gutenberg page options/featured image
- Problems updating nested ACF field groups
- Display acf taxonomy attachment
- How to populate a Gutenberg select field SelectControl with option value from PHP array
- Nested Queries of decreasing specificity
- How to extend SelectControl with data from my theme
- Copying and pasting to WordPress “code editor” code via the front end and clipboard
- ACF: Display Google Map in frontend issues
- Bootstrap 4 Carosuel with ACF Repeater field
- How to display acf field values from home page on all pages?
- Set ACF on order during checkout
- Is there a PHP function that will return the block ID generated by WordPress?
- register_block_type is not working properly
- Categories does not show Block editor WordPress
- Advanced Custom Forms PHP formatting for do_shortcode
- Block that renders html saved in a php file
- Get field value and use as variable in php
- ACF Gallery field images donwload
- ACF under category name in shop page [closed]
- get_template_part() not working with Advanced Custom Fields plugin
- List all ACF field values across every post on one page
- Javascript Tab Gallery with Advanced Custom Fields
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- ACF background-color per post in a WordPress loop
- How can I copy an ACF field to AIOSEO field? [closed]
- Make sticky post with FacetWP
- Generate a radius search of custom post type locations
- WooCommerce Custom Tab with ACF Repeater Field
- PHP for loop not working as intended
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- Display a single row from nested array of custom field data
- Else if Statement for Advanced Custom Fields [closed]
- ACF loop and php formatting
- get_category only returning details for ‘uncategorized’
- Custom field within shortcode
- ACF allow zero as a value
- ACF Date fileds to Age Convert [closed]
- Advanced custom fields Repeater conditional statement not working [closed]
- Order woo products, but first products must be with acf fields
- advanced custom fields: repeater field within conditional statement [closed]
- Add default block css when the block has been added with php?
- Custom Post Type doesn’t have template content when creating programmatically in PHP but does when created in WP Admin
- Replace block content with an array
- Include a static block inside of a dynamic block
- ACF number less than comparison not working