To add support for inner blocks, use the
<InnerBlocks />Component within your render template/callback to define an editable area. This special element will be displayed as a native “block inserter area” when editing content, and the saved “inner blocks content” when viewing content.
// Register a restricted block. acf_register_block_type(array( 'name' => 'restricted', 'title' => 'Restricted', 'description' => 'A restricted content block.', 'category' => 'formatting', 'mode' => 'preview', 'supports' => array( 'jsx' => true ) ));
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!