Skip to content

Select terms to associate with your content.

Notifications You must be signed in to change notification settings

isabella232/cmb2-term-select

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMB2 Term Select

Special CMB2 Field that allows users to define an autocomplete text field for terms.

Example

$cmb->add_field( array(
	'name'     => 'Select Category',
	'id'       => 'category_data',
	'desc'     => 'Type the name of the term and select from the options',
	'type'     => 'term_select',
	'taxonomy' => 'category',
	// 'apply_term' => false, // If set to false, saves the term to meta instead of setting term on the object.
	// 'attributes' => array(
	// 	'data-min-length' => 2, // Override minimum length
	// 	'data-delay'      => 100, // Override delay
	// ),
) );

About

Select terms to associate with your content.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 90.3%
  • JavaScript 9.7%