Hi Anh Tran,
I too have a problem saving groups all in a sudden. I have groups with a few textfields and one imagefield.
I add a new page and can add a group, when I add a second group it overrides the first group and adds the image. So instead of two groups with each its own image (a logo) I get one group with the two images attached.
I checked the forum and cleared the cache to see if it was the javascript problem but that doesn't help.
Here's the code I use to define the field:
// METABOX: FOOD FESTIVAL
$meta_boxes[] = array(
'title' => 'Foodfestivals toevoegen',
'post_types' => array( 'page' ),
// Register this meta box for posts matched below conditions
'include' => array(
// With all conditions below, use this logical operator to combine them. Default is 'OR'. Case insensitive. Optional.
'relation' => 'OR',
// List of post parent IDs. Alleen toevoegen als parent ID 81 (foodfestivals) is
'parent' => array( 81 ),
),
'fields' => array(
// Group
array(
'name' => 'Food festival', // Optional
'id' => 'ff_id',
'type' => 'group',
'clone' => true, // Clone whole group?
//'sort_clone' => true, // Drag and drop clones to reorder them?
// List of sub-fields
'fields' => array(
array(
'name' => '<strong>Naam festival</strong>',
'id' => $prefix . 'ff_name',
'type' => 'text',
),
array(
'name' => '<strong>Website</strong>',
'id' => $prefix . 'ff_url',
'type' => 'text',
),
array(
'name' => '<strong>Plaats</strong>',
'id' => $prefix . 'ff_place',
'type' => 'text',
),
array(
'name' => '<strong>Datum</strong>',
'id' => $prefix . 'ff_date',
'type' => 'text',
),
array(
'name' => '<strong>Visual festival</strong>',
'id' => $prefix . 'ff_visual',
'type' => 'image_advanced',
'desc' => 'Visual (128 x 128 px).'
),
// Other sub-fields here
),
),
),
);