How to create repeatable blocks (not custom fields)
-
Hi there,
I am creating a page template using CMB2 – I have a panel containing a wysiwig and text field. I want to have a repeater them both, not just a single field. How do I do this?
Screenshot of what am I wanting to repeat – the entire panel, not just one block.
https://www.evernote.com/l/AAFxSXJT_OhNyrlts45yAiMy8_LF6DKBwWM
This is what I am currently using for a panel – with the custom fields inside this.
$panel1_box = new_cmb2_box( array( 'id' => $prefix . 'panel_one', 'title' => __( 'Panel 1', 'cmb2' ), 'object_types' => array( 'page', ), 'show_on' => array( 'id' => array( 274, ) ), 'priority' => 'high', ) );
Thanks in advance,
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to create repeatable blocks (not custom fields)’ is closed to new replies.