Support Forum
Support › Meta Box Group › Only First Group Field Appears
I have just downloaded the extension and am using the latest version of the plugin. I have loaded the extension within my theme following the instructions provided. I then copied the exact code to create the group metabox and fields as provided on this site, yet only the first field appears. It doesn't matter if I change the field types, have more or less fields, toggle the clone and sorting options on or off... nothing works to display any more than one field.
This is the code I'm using:
$meta_boxes[] = array(
'title' => 'Album Tracks',
'pages' => array( 'post','page' ),
'fields' => array(
array(
'id' => 'standard',
// Group field
'type' => 'group',
// Clone whole group?
'clone' => true,
// Drag and drop clones to reorder them?
'sort_clone' => true,
// Sub-fields
'fields' => array(
array(
'name' => 'Track name',
'id' => 'text',
'type' => 'text',
),
array(
'name' => 'Release Date',
'id' => 'date',
'type' => 'date',
),
array(
'name' => 'Genre',
'id' => 'genre',
'type' => 'select_advanced',
'options' => array(
'pop' => 'Pop',
'rock' => 'Rock',
),
),
),
),
),
);
Upon further testing, I can see that the first field doesn't even work properly. If I change it to a date field or another field type, it still shows as a text field.
I have now tried installing the plugin normally via the WP Plugins page, but the result is still the same. It doesn't work at all. Please get back to me asap. I'm on a tight deadline and could have just done this using CMB2 for free. I invested $50 in this extension to save time. It has to work.
Hi katev,
From the screenshot, I guess you haven't activated the Meta Box Group extension, have you? This is what I have on my localhost with your code: