Only First Group Field Appears
- This topic has 5 replies, 2 voices, and was last updated 5 years, 11 months ago by
Anh Tran.
-
AuthorPosts
-
May 6, 2019 at 2:32 AM #14440
katev
ParticipantI 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.
May 6, 2019 at 2:32 AM #14441katev
ParticipantThis 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', ), ), ), ), ), );
May 6, 2019 at 2:36 AM #14442katev
ParticipantUpon 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.
May 6, 2019 at 2:39 AM #14443katev
ParticipantI 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.
May 6, 2019 at 2:46 AM #14444katev
ParticipantMay 6, 2019 at 8:29 AM #14451Anh Tran
KeymasterHi katev,
From the screenshot, I guess you haven't activated the MB Group extension, have you? This is what I have on my localhost with your code:
-
AuthorPosts
- You must be logged in to reply to this topic.