Title: Nested Cloneable Groups
Last modified: August 24, 2016

---

# Nested Cloneable Groups

 *  Resolved [acconway](https://wordpress.org/support/users/acconway/)
 * (@acconway)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/nested-cloneable-groups/)
 * 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://wordpress.org/plugins/meta-box/](https://wordpress.org/plugins/meta-box/)

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

 *  Thread Starter [acconway](https://wordpress.org/support/users/acconway/)
 * (@acconway)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/nested-cloneable-groups/#post-6027335)
 * 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](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/nested-cloneable-groups/#post-6027423)
 * 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.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/nested-cloneable-groups/#post-6027423)
 * Status: resolved