项目作者: CMB2

项目描述 :
Select terms to associate with your content.
高级语言: PHP
项目地址: git://github.com/CMB2/cmb2-term-select.git
创建时间: 2016-05-29T20:53:05Z
项目社区:https://github.com/CMB2/cmb2-term-select

开源协议:

下载


CMB2 Term Select

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

Example

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