piklist(‘field’, array(
‘type’ => ‘group’,
‘field’ => ‘section_customer’,
‘template’ => ‘field’,
‘fields’ => array(
array(
‘type’ => ‘text’,
‘field’ => ‘title’,
‘label’ => __(‘Title:’, ‘mks_home’),
‘value’ => ‘<b>Khách hàng <span>của chúng tôi là ai?</span></b>’,
‘columns’ => 12
),
array(
‘type’ => ‘group’,
‘field’ => ‘list_customer’,
‘template’ => ‘field’,
‘add_more’ => true,
‘fields’ => array(
array(
‘type’ => ‘text’,
‘field’ => ‘name’,
‘label’ => __(‘Name customer:’, ‘mks_home’),
‘columns’ => 4
),
array(
‘type’ => ‘textarea’,
‘field’ => ‘description’,
‘label’ => __(‘Description customer:’, ‘mks_home’),
‘columns’ => 8
)
)
)
)
));
I use add_more for repeat group ‘list_customer’. Error_log get_post_meta( $ID, ‘section_customer’, true) has name & description show but edit page not show in input field repeat.