• Resolved acconway

    (@acconway)


    Hi, I just purchased the Group extension, and it seems that multiple levels of cloning nested groups doesn’t work. What I’m trying to do is have a group that’s clonable, with a clonable group inside it. I can set up the metaboxes to do this but there’s lots of incorrect behavior. Have you considered this feature, is it not working a bug or purposefully left out?

    https://ww.wp.xz.cn/plugins/meta-box/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter acconway

    (@acconway)

    Here’s an example:

    $meta_boxes[] = array(
    		'title' => 'Page Sections',
    		'post_types' => 'page',
    		'autosave' => true,
    		'fields' => array(
    			// Group
    			array(
    				'name' => 'Section', // Optional
    				'id' => "{$prefix}section",
    				'clone' => true,
    				'type' => 'group',
    				// List of sub-fields
    				'fields' => array(
    					array(
    						'name' => 'Section', // Optional
    						'id' => "{$prefix}section1",
    						'clone' => true,
    						'type' => 'group',
    						'fields' => array(
    							array(
    								'name' => __('Title', 'meta-box'),
    								'id' => "{$prefix}title",
    								'type' => 'textarea',
    								'rows' => 1,
    							),
    						))),
    				// List of sub-fields
    				// 'fields' => array()),
    			),
    		),
    	);
    Plugin Author Anh Tran

    (@rilwis)

    Hi, thank you for your question. Unfortunately the plugin supports only 1-level of grouping fields. I will think more about nested groups, but for now we don’t have that feature.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Nested Cloneable Groups’ is closed to new replies.