Home Forums Gutenberg render_callback and InnerBlocks


render_callback and InnerBlocks

    • dhuyck

    • January 23, 2021 at 8:17 am

    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!

    • diego

    • February 6, 2021 at 1:15 am

    Same here, also setting jsx attribute.
    Any clue?

    • diego

    • February 6, 2021 at 1:47 am

    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.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.