-
Notifications
You must be signed in to change notification settings - Fork 124
Taxonomy Select Field
Robert O'Rourke edited this page Feb 6, 2015
·
9 revisions
Taxonomy select field. Displays a select input containing all terms within a given taxonomy.
Uses Select2, a jQuery based replacement for select boxes.
- id (string) (required)
- name (string) (required) Field display name. Used as field label.
- type 'taxonomy_select' (required)
- taxonomy (string) (required)
- allow_none (bool) Shows a blank option so the selection can be emptied
- multiple (bool) When true allows selection of multiple taxonomy terms
array(
'id' => 'example-field-taxonomy-select',
'name' => 'Taxonomy Select Field',
'type' => 'taxonomy_select',
'taxonomy' => 'category'
);
- Setup/Install Custom Meta Boxes
- Creating a custom meta box
- Displaying Field Data
- Optional Generic Field Args
- Repeatable Fields
General
- Text Field
- Small Text Field
- Number Field
- URL Field
- Textarea Field
- Code Field
- Select Field
- Checkbox Input Field
- Radio Input Field
Date & Time
WordPress
Media
Utilities