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
- How to serialize a Gutenberg block from block attributes in PHP?
- Removing Default Gutenberg Blocks, But Keeping Reusable Block Functionality?
- 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]
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- If Custom Field is empty don’t display div
- add_meta_boxes action with refresh on save
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- Conditional statement for parent, child and grandchild pages
- The values of custom fields are not available functions.php
- Problem with ACF shortcode with Repeater Field in WordPress? [closed]
- Unique key for each row in a repeater field
- 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
- Advanced Custom Fields Image Field returning ID instead of URL [closed]
- Create custom blocks for bootstrap
- How to return output of the new wp gallery block for automatically Link images To Media file
- 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]
- Scheduling a post using publish date from a custom field. Resulting post is set as published in the future instead of scheduled
- Make sticky post with FacetWP
- Generate a radius search of custom post type locations
- WooCommerce Custom Tab with ACF Repeater Field
- Ordering / grouping posts by datepicker ACF
- PHP for loop not working as intended
- Position a repeated article blocks
- 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 Images If/else
- 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
- the_post_thumbnail unless video id is added
- get_category only returning details for ‘uncategorized’
- Custom field within shortcode
- ACF allow zero as a value
- Add comma between variables [closed]
- 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
- 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
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- 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?
- 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
- How to add different menu items on different menus?
- How to enable REST API on custom post type without Gutenberg?
- Creating posts with php-script + csv
- Replace block content with an array
- Include a static block inside of a dynamic block
- WordPress Block Editor Gutenberg running code inside ! is_admin()
- ACF number less than comparison not working
- Advanced Custom Fields – How do I get field values of a group within a group field type
- Manipulating the allowed inner blocks of a core-gutenberg-block?
- “acf/load_field” Critical error upon saving/updating WooCommerce products [closed]
- How to get ACF field to show up on all posts on front end?
- Put ACF function output code the_terms
- Adding features to Gutenberg without theme.json
- Registering a custom block style
- Cannot Access ACF Field Values via my Plugin
- Advanced Custom Fields Auto Populating Field Values For Nested Repeater FIelds
- How to create advanced custom fields for backend content
- Get column block count using PHP method render_block
- do_blocks not working with a custom block
- ACF block gutenberg aligncenter don’t work
- Phone number custom field and woocommerce updating issue noticed
- How to capture number input from wordpress form into acf field in woocommerce
- Execute a PHP Function when a Block is used and access it’s attributes
- add class to woocommerce single product template gallery thumbnails if media attachment ACF field toggled (true/false)
- Alter main query to always list posts according to ACF number field
- Add css class ID to largest and smallest number a custom field in wp_query
- create custom post type and populate custom fields using php
- 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
- Date not working correctly
- Add custom data attribute to every core Gutenberg Blocks
- Embed dynamic media query in a Gutenberg block
- Get generated block styles programmatically
- Custom gutenberg block refuses to load viewScript and I don’t know why
- Add up all numbers from a WordPress query [closed]
- WordPress per ACF – permalink is not working
- When a foreach loop is used multiple times in blocks, is there a way to ensure a variable always has a unique value?
- Why does my custom slug only show in Gutenberg editor after page refresh?
- Prevent render in editor via PHP
- 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
- Set custom post type to load custom block pattern by default
- Display posts in correct month order using single date custom field