Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  ntnhan0605 2 months, 2 weeks ago.

  • Author
    Posts
  • #9221

    ntnhan0605
    Participant

    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.

You must be logged in to reply to this topic.