Nuxy
Search…
17. Repeater
Add repeater field with all fields available (ex.: text, checkbox, select and even another repeater)
1
'field_t' => array(
2
'type' => 'repeater',
3
'label' => esc_html__( 'Repeater fields', 'my-domain' ),
4
'fields' => array(
5
'field_1' => array(
6
'type' => 'text',
7
'label' => esc_html__( 'Text 1', 'my-domain' ),
8
),
9
'field_2' => array(
10
'type' => 'select',
11
'label' => esc_html__( 'Select 2', 'my-domain' ),
12
'options' => array(
13
'text' => esc_html__('Text', 'my-domain'),
14
'video' => esc_html__('Video', 'my-domain'),
15
'slide' => esc_html__('Slide', 'my-domain'),
16
),
17
),
18
)
19
),
Copied!
Last modified 1yr ago
Copy link