Display a Taxonomy selector as radio, checkbox or select field type.
Setting name | Description |
Filter which taxonomy can be chosen | |
Appearance | Select the appearance of this field |
Return Value | Return the taxonomy name or object |
Allow empty value | |
Layout | Choose the layout |
Toggle | Allow to toggle all values |
Allow Custom | Allow custom value |
Select multiple values | Allow multiple values selection |
Stylised UI | Enable Select2 UI style |
$taxonomies = get_field('taxonomies');
/**
* array(
* 'name' => 'my-taxonomy',
* 'label' => 'My Taxonomy',
* 'description' => '',
* 'public' => true,
* 'publicly_queryable' => true,
* 'hierarchical' => true,
* ...
* )
*/
$taxonomies = get_field('taxonomies');
// my-taxonomy
$taxonomies = get_field('taxonomies', false, false);
// my-taxonomy