Skip to content

Taxonomy Select Field

Matth_eu edited this page Sep 24, 2013 · 9 revisions

Taxonomy select field. Displays a select input containing all terms within a given taxonomy.

Taxonomy Select Field

Uses Select2, a jQuery based replacement for select boxes.

Args

Required Args

  • id (string) (required)
  • name (string) (required) Field display name. Used as field label.
  • type 'taxonomy_select' (required)

Field Specific Args

  • taxonomy (string) (required)

Optional Generic Args

See Optional Generic Args

Example Usage

array( 
	'id'       => 'example-field-taxonomy-select', 
	'name'     => 'Taxonomy Select Field', 
	'type'     => 'taxonomy_select', 
	'taxonomy' => 'category' 
);