Custom Fields
Support Meta Box Group Groups and Tabs not quite working…

  • Creator
  • #482

    I am trying to use the TABS, COLUMNS and GROUPS plugins together.

    I have hacked this script up quite a bit… trying to use ‘tabs’ and such in different places.

    Maybe they are not meant to work together? If so, thats OK, I am fine with using another box. Please let me know your thoughts on this. Thank you for your consideration.

    $meta_boxes[] = array(
    		'title'  => __( 'Books', 'rwmb' ),
    		'pages' => array( 'portfolio' ),
    		'tabs'   => array(
    			'tabzzz' => 'Media Item',
    		'fields' => array(
    				'id'     => 'chapters',
    				'tab'     => 'tabzzz',
    				'name'   => __( 'Chapters', 'rwmb' ),
    				'type'   => 'group', // Group type
    				'clone'  => true,    // Can be cloned?
    				// List of child fields
    				'fields' => array(
    				'tab'     => 'tabzzz',
    					'tab'     => 'tabzzz',
    						'name'    => __( 'Chapter Title', 'rwmb' ),
    						'id'      => 'chapter_title',
    						'type'    => 'text',
    						'columns' => 6, // Display child field in grid columns
    					'tab'     => 'tabzzz',
    						'name'    => __( 'Page', 'rwmb' ),
    						'id'      => 'page',
    						'type'    => 'number',
    						'size'    => 5,
    						'columns' => 6, // Display child field in grid columns
Viewing 9 replies - 1 through 9 (of 9 total)
  • Author
  • #486
    Anh Tran


    I’m afraid Group and Tabs can’t work together. Both these extensions change the way fields output HTML and unfortunately these ways are not compatible to each other (Group is using output buffering to capture all sub-fields output, while tabs does not).

    The only good news is both of them can work with Columns extension :). So I think you should separate fields into several meta boxes: some use Tabs, some use Group when possible.


    Please add this information to the page where the groups plugin is sold in BIG RED LETTERS.
    I was very much under the impression that all these plugins are compatible.
    I feel I have been mislead.

    Anh Tran

    I’m sorry for that confusing. I’ve just updated the Tabs extension to make it work with Group extension. Please update the Tabs extension.

    Here is the sample code to create 2 tabs, each tab contain 1 group (clonable):


    wonderful news! I will take a look.
    That is very awesome of you. I am impressed!


    I have tested this out, it works very well.
    Thank you.
    I am thinking about buying the tool tips as well. Are they compatable?
    Here is my set up:
    Tabs, Groups, Colums, + Tooltips?
    Will they work together?

    I appreciate your efforts, very good work sir! Good work indeed!

    Anh Tran

    Yes they do. They all work together. Please try.

    If you need any help, please let me know.


    This is great! I really think you did a good job on these. (Also very smart way to sell them)
    I bought the tooltip and it works.

    I have a small suggestion, maybe you can help. Consider this code below:

    				'type' => 'custom_html',
    				'name' => '_blank',
    				'id'   => '_blank', 
    				'content'     => '<img src="image">some info <em>some html</em>',
    'columns' => 6,
    'clone' => false,

    Is there a way to do this?
    I am quite familiar with meta-box.php file. If I wanted to add in a custom type called “custom_html” what would you recommend?
    Is there already a way to do this?

    I was thinking I could take inc/fields/divider.php and turn it into custom_html.php and then follow examples in your plugin. Do you have any advice for this?


    Never mind! I found this

    I can see how to do this.

    Anh Tran

    Hi, that’s great. I thought about the same idea, but didn’t have time to implement that. If you don’t mind, can you share with other people via a pull request on Github?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Groups and Tabs not quite working…’ is closed to new replies.