Only First Group Field Appears

Support MB Group Only First Group Field Appears

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #14440
    katevkatev
    Participant

    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.

    #14441
    katevkatev
    Participant

    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',
                            ),
                        ),
                    ),
                ),
            ),
        );
    #14442
    katevkatev
    Participant

    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.

    #14443
    katevkatev
    Participant

    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.

    #14444
    katevkatev
    Participant

    This is how the metabox appears

    #14451
    Anh TranAnh Tran
    Keymaster

    Hi 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:

    https://i.imgur.com/853VvHz.png

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.