Field Render

Display a Taxonomy Terms selector as radio, checkbox or select field type.

Field Settings

Setting nameDescription
Allow TaxonomiesFilter which taxonomy can be chosen
Allow TermsFilter which terms of the allowed taxonomies can be chosen
AppearanceSelect the appearance of this field: checkbox, radio or select
Return the terms name, object or ID
Save TermsConnect selected terms to the post
Load TermsLoad value from posts terms
Radio: LayoutChoose the layout: vertical or horizontal
Checkbox: LayoutChoose the layout: vertical or horizontal
Checkbox: ToggleAllow to toggle all values
Allow empty value
Allow multiple values selection
Stylised UIEnable Select2 UI style
Select: Placeholder TextAppears within the input
Select: Ajax lazy loadUse AJAX to lazy load choices

Field Value

Value can then be retrieved using the common get_field() function. Usage example:

$taxonomy_terms = get_field('taxonomy_terms');

/*
 * Array(
 *      [0] => 12
 *      [1] => 14
 *      [2] => 52
 * )
*/