Yes, of course, here it is:
add_filter( 'rwmb_meta_boxes', 'meta_box_group_demo_register' );
function meta_box_group_demo_register( $meta_boxes )
{
$meta_boxes[] = array(
'id' => 'persondetails',
'title' => __( 'Person\'s Details', 'your-prefix' ),
'pages' => array( 'our_attorneys' ), //post type name
'fields' => array(
//group
array(
'id' => 'lawyers_prof_act',
'name' => __( 'Professional Activity', 'your-prefix' ),
'type' => 'group', // Group type
'clone' => true, // Can be cloned?
// List of child fields
'fields' => array(
array(
'name' => __( 'Activity Title', 'your-prefix' ),
'id' => 'npm_lw_act_title',
'type' => 'text',
'columns' => 6,
),
array(
'name' => __( 'Important Resources', 'your-prefix' ),
'id' => "npm_lw_act_content",
'type' => 'wysiwyg',
'raw' => false,
'options' => array(
'textarea_rows' => 4,
'teeny' => true,
'media_buttons' => false,
),
),
array(
'name' => __( 'Shortcode - [attorney-blog-posts category= author= ]', 'your-prefix' ),
'id' => 'npm_att_shortcode',
'type' => 'text',
'columns' => 6,
),
),
),
),
);
I'm sorry, I should have specified: the wysiwyg editor is broken when using groups WITH the "clone" set to "true" - I do believe it's a js thing but I just can't find it!
Best regards,
Gabriela