Adding Groups to a Tab

Support MB Group Adding Groups to a TabResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23028
    Kevin CoetzeeKevin Coetzee
    Participant

    I have a number of Tabs with Custom Fields in, I'm trying to get a clonable group working in one of the Tabs but all that shows up is a text box. Is this scenario possible?

    #23033
    Kevin CoetzeeKevin Coetzee
    Participant

    Here is a link to the extracted piece of my code : https://pastebin.com/r5fi2YSm

    I tried your sample code found at https://support.metabox.io/topic/groups-and-tabs-not-quite-working/ but getting the same result, seeing the Group Name displayed and a Textbox with the Add New Button. In Essence the fields don't display

    #23034
    Long NguyenLong Nguyen
    Moderator

    Hi Kevin,

    I've tested your code on my local site but not see any issue. See my screen record https://share.getcloudapp.com/qGul1BqW.

    Could you please share some screenshots of the issue on your end? And please make sure that all the Meta Box plugins have the newest version.

    #23038
    Kevin CoetzeeKevin Coetzee
    Participant

    Thank You. I realised I was not being "smart" I was trying to embed the Group controls via Composer in my plugin. Once I manually added the plugin and activaed it it works. Is it not possible to use composer vs then manual plugin option that that the extention is is included. It seem to work for the Tab extention so assumed it would work for Group

    #23050
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The extension MB Group can be installed via Composer. You can get the sample file composer.json here https://github.com/wpmetabox/library/blob/master/composer/composer.json.

    Check if the plugin MB Group is loaded before requiring the file vendor.php

    if( ! class_exists( 'RWMB_Group' ) ) {
        require 'meta-box/vendor/autoload.php';
        // code goes here
    }

    Related topic: https://support.metabox.io/topic/input-values-not-shown-in-back-end/

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