Nuxy
Search…
⌃K

General field parameters

Add label, hint, description or start group of fields

Preview setting (as image):

'preview' => get_template_directory_uri() . 'some_url.jpg',
Radio button can have several previews:
'field' => array(
'type' => 'radio',
'label' => esc_html__('Radio Button', 'my-domain'),
'submenu' => esc_html__('General fields', 'my-domain'),
'options' => array(
1 => 'One',
2 => 'Two',
3 => 'Three',
4 => 'Four',
),
'previews' => array(
1 => get_template_directory_uri() . 'some_url_1.jpg',
2 => get_template_directory_uri() . 'some_url_2.jpg',
3 => get_template_directory_uri() . 'some_url_3.jpg',
4 => get_template_directory_uri() . 'some_url_4.jpg',
),
'description' => esc_html__('Manage create listing page section titles front-end and admin', 'my-domain'),
),

Groups

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