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:
- is_admin returning false in backend in server side rendered block
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- add_meta_boxes action with refresh on save
- The values of custom fields are not available functions.php
- Unique key for each row in a repeater field
- Gutenberg custom block using only register_block_type() and HTML
- Advanced Custom Fields Image Field returning ID instead of URL [closed]
- How to return output of the new wp gallery block for automatically Link images To Media file
- Can an array be used as a meta_query value?
- ACF check if variable has http, if else return string
- Looking for most performant way to execute several similar WP queries within shortcodes
- Trouble With Conditional Logic in PHP
- ACF page while loop breaks footer while loop
- Using Advanced Custom Fields to create a per page slider
- ACF: how do I get the fields and its values of a specific group?
- How to programmatically add Gallery Block to Existing Post Content
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Gutenberg block – Save PHP function’s output as HTML?
- Generate YouTube image thumbnail in a Gutenberg block – ACF + Timber
- Remove the first 5 characters of the_title and orderby that
- How to use thumbnail size of image if I’m only using src to get image
- Sort by page information by Ascending Numbers
- Add class to group inner container
- Advanced Custom Fields – display label and value only if value entered
- Download PDF after CF7 form submission
- 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?
- ACF & Bootstrap Gallery Shows Blank Slides [closed]
- ACF Repeater Pagination stopped working since upgrade to php7.2
- How to render a block from php template
- what is the method to echo class attribute inside the i tag? [closed]
- Refactoring long if/else php chains
- Getting taxonomy category Image from ACF [closed]
- Show get_sub_field value if it exists [closed]
- Update post meta – Custom field does not match meta-key
- Including Custom fields within the_content
- Remove Post if Advanced Custom Field is checked to fix paging
- Update user repeater meta (ACF) with another user meta field value
- Want to unrestrict plugin block
- Add class to all img if they have a certain ACF field
- Additional file upload in Gutenberg page options/featured image
- Delete images from media library when user deletes an image from ACF Gallery
- Display acf taxonomy attachment
- Gutenberg Blocks and get_option() for styling
- Nested Queries of decreasing specificity
- 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?
- ACF Taxonomy field values not select in backend
- Use WPQuery to match to specific repeater row in post
- register_block_type is not working properly
- Categories does not show Block editor WordPress
- ACF relationship on user profile page used for allowed access
- ACF – Can’t get custom post type by taxonomy
- Advance custom fields variable with if statement & Function
- ElseIf Statement with ACF Group field
- Block that renders html saved in a php file
- Place product field value as variable in php
- Show Gutenberg facebook embed with a custom theme
- 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
- How to output values from a loop into a javascript array
- Generate a radius search of custom post type locations
- WooCommerce Custom Tab with ACF Repeater Field
- Ordering / grouping posts by datepicker ACF
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- Display a single row from nested array of custom field data
- Page returning ID from array, how to return the correct values for post in acf wordpress
- Sort by multiple options in custom field
- If or/and statement advanced custom fields [closed]
- Top menu disapears in Category Pages when filtering using ACF
- ACF loop and php formatting
- Custom field within shortcode
- ACF allow zero as a value
- Advanced custom fields Repeater conditional statement not working [closed]
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Gutenberg – render_callback does not pass ToggleControl value on frontend
- Show button in header when product custom field is not empty
- advanced custom fields: repeater field within conditional statement [closed]
- How can I get values from a custom post type depending on where I click on my SVG map?
- How to enable REST API on custom post type without Gutenberg?
- WordPress Block Editor Gutenberg running code inside ! is_admin()
- Manipulating the allowed inner blocks of a core-gutenberg-block?
- “acf/load_field” Critical error upon saving/updating WooCommerce products [closed]
- Adding features to Gutenberg without theme.json
- Cannot Access ACF Field Values via my Plugin
- How to create advanced custom fields for backend content
- How to edit templates created in the block editor in code / template files not updating
- Programmatically convert single classic block to individual blocks via PHP
- Embed dynamic media query in a Gutenberg block
- Get generated block styles programmatically
- Add up all numbers from a WordPress query [closed]
- When a foreach loop is used multiple times in blocks, is there a way to ensure a variable always has a unique value?
- How to get the post title inside a custom block in a loop? block.js
- How to display only the first 2 words of a post title
- How to get the content of a dynamic block in PHP