and if there is an InnerBlocks in one of the block render with <InnerBlocks /> the editor doesn’t work (not initialized I think).
If the block is added with the inserter all is ok.
Has anyone also had this problem?
Thanks in advance,
I found the problem, if your innerblocks is in a template locked you need to add templateLock="false" like that echo '<InnerBlocks allowedBlocks="' . esc_attr( wp_json_encode( $allowed_blocks ) ) . '" templateLock="false" />';
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users