Nuxy
Search…
General field parameters
Add label, hint, description or start group of fields

Preview setting (as image):

1
'preview' => get_template_directory_uri() . 'some_url.jpg',
Copied!
Radio button can have several previews:
1
'field' => array(
2
'type' => 'radio',
3
'label' => esc_html__('Radio Button', 'my-domain'),
4
'submenu' => esc_html__('General fields', 'my-domain'),
5
'options' => array(
6
1 => 'One',
7
2 => 'Two',
8
3 => 'Three',
9
4 => 'Four',
10
),
11
'previews' => array(
12
1 => get_template_directory_uri() . 'some_url_1.jpg',
13
2 => get_template_directory_uri() . 'some_url_2.jpg',
14
3 => get_template_directory_uri() . 'some_url_3.jpg',
15
4 => get_template_directory_uri() . 'some_url_4.jpg',
16
),
17
'description' => esc_html__('Manage create listing page section titles front-end and admin', 'my-domain'),
18
),
Copied!

Groups

You can start group from single field:
1
'group' => 'started'
Copied!
And end group in another field. All fields between them will be grouped:
1
'group' => 'ended'
Copied!
Group may have title:
1
'group_title' => esc_html__('Group title', 'my-domain')
Copied!
Last modified 10mo ago