admin管理员组

文章数量:1289363

I'm working with Gutenberg blocks via ACF. It's great compromise between classic / ACF and the Gutenberg. Another great thing is <InnerBlocks />. However, in one block can be used only one <InnerBlocks /> tag, so it's kind of problematic, if I want to have more control over the html structure in my block. So: I have block with two divs (two columns). In each one I want to use Gutenberg blocks. Is there any way to insert specified block directly in my code, like image or group, without inner block?

I'm working with Gutenberg blocks via ACF. It's great compromise between classic / ACF and the Gutenberg. Another great thing is <InnerBlocks />. However, in one block can be used only one <InnerBlocks /> tag, so it's kind of problematic, if I want to have more control over the html structure in my block. So: I have block with two divs (two columns). In each one I want to use Gutenberg blocks. Is there any way to insert specified block directly in my code, like image or group, without inner block?

Share Improve this question asked Aug 13, 2021 at 12:07 D_PD_P 1531 gold badge3 silver badges12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

No, you can't have multiple InnerBlocks. But you can create a second intermediate block, just like WordPress Core does with the columns and column block.

本文标签: ACF and Gutenberg blockhow to use blocks without ltInnerBlocks gt