Support

Account

Home Forums Gutenberg render_callback and InnerBlocks

Solving

render_callback and InnerBlocks

  • I’m very excited to see that InnerBlocks is now supported in ACF_Blocks!

    I’m working on setting up a new block that takes advantage of this. In our WP, we have set up some infrastructure around creating custom ACF blocks, and we typically use the render_callback parameter for rendering the block output.

    However, it looks like the only way to get the InnerBlocks area to work in the editor is to use a render_template instead.

    Am I missing something? Is there a way to use callback functions? Or do I have to switch to using a template when I want to use InnerBlocks?

    Thanks, all!

  • Same here, also setting jsx attribute.
    Any clue?

  • Ok, it seems that if you set mode to preview (with 'jsx' => true in supports) it works.
    Don’t know why auto is not working.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.