{"action":"opened","issue":{"url":"https://api.github.com/repos/mustardBees/cmb-field-gallery/issues/8","labels_url":"https://api.github.com/repos/mustardBees/cmb-field-gallery/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/mustardBees/cmb-field-gallery/issues/8/comments","events_url":"https://api.github.com/repos/mustardBees/cmb-field-gallery/issues/8/events","html_url":"https://github.com/mustardBees/cmb-field-gallery/issues/8","id":55178429,"number":8,"title":"image groups inside a group","user":{"login":"amitrahav","id":1517479,"avatar_url":"https://avatars.githubusercontent.com/u/1517479?v=3","gravatar_id":"","url":"https://api.github.com/users/amitrahav","html_url":"https://github.com/amitrahav","followers_url":"https://api.github.com/users/amitrahav/followers","following_url":"https://api.github.com/users/amitrahav/following{/other_user}","gists_url":"https://api.github.com/users/amitrahav/gists{/gist_id}","starred_url":"https://api.github.com/users/amitrahav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitrahav/subscriptions","organizations_url":"https://api.github.com/users/amitrahav/orgs","repos_url":"https://api.github.com/users/amitrahav/repos","events_url":"https://api.github.com/users/amitrahav/events{/privacy}","received_events_url":"https://api.github.com/users/amitrahav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-22T16:56:29Z","updated_at":"2015-01-22T16:56:29Z","closed_at":null,"body":"from the second entry and on the mange gallery button does not work:\r\n```\r\nfunction cmb2_sample_metaboxes( array $meta_boxes ) {\r\n\t// Start with an underscore to hide fields from custom fields list\r\n\t$prefix = '_cmb2_';\r\n\t/**\r\n\t * Repeatable Field Groups\r\n\t */\r\n\t$meta_boxes['field_group'] = array(\r\n\t\t'id'           => 'field_group',\r\n\t\t'title'        => __( 'Repeating Field Group', 'cmb2' ),\r\n\t\t'object_types' => array( 'page'),\r\n\t\t'fields'       => array(\r\n\t\t\tarray(\r\n\t\t\t\t'id'          => $prefix . 'repeat_group',\r\n\t\t\t\t'type'        => 'group',\r\n\t\t\t\t'description' => __( 'Generates reusable form entries', 'cmb2' ),\r\n\t\t\t\t'options'     => array(\r\n\t\t\t\t\t'group_title'   => __( 'Entry {#}', 'cmb2' ), // {#} gets replaced by row number\r\n\t\t\t\t\t'add_button'    => __( 'Add Another Entry', 'cmb2' ),\r\n\t\t\t\t\t'remove_button' => __( 'Remove Entry', 'cmb2' ),\r\n\t\t\t\t\t'sortable'      => true, // beta\r\n\t\t\t\t),\r\n\t\t\t\t// Fields array works the same, except id's only need to be unique for this group. Prefix is not needed.\r\n\t\t\t\t'fields' => array(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'name' => 'title',\r\n\t\t\t\t\t\t'id'   => 'title',\r\n\t\t\t\t\t\t'type' => 'text',\r\n\t\t\t\t\t),\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'name' => 'desc,\r\n\t\t\t\t\t\t'description' => 'Write a short description for this entry',\r\n\t\t\t\t\t\t'id'   => 'description',\r\n\t\t\t\t\t\t'type' => 'textarea_small',\r\n\t\t\t\t\t),\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'name' => 'Gallery Images',\r\n\t\t\t\t\t    'desc' => 'Upload and manage gallery images',\r\n\t\t\t\t\t    'button' => 'Manage gallery', // Optionally set button label\r\n\t\t\t\t\t    'id'   => $prefix . 'gallery_images',\r\n\t\t\t\t\t    'type' => 'pw_gallery',\r\n\t\t\t\t\t    'sanitization_cb' => 'pw_gallery_field_sanitise',\r\n\t\t\t\t\t),\r\n\t\t\t\t),\r\n\t\t\t),\r\n\t\t),\r\n\t);\r\n\treturn $meta_boxes;\r\n}\r\n```"}}