Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CMB2/cmb2-term-select
Select terms to associate with your content.
https://github.com/CMB2/cmb2-term-select
cmb2 php wordpress
Last synced: 3 months ago
JSON representation
Select terms to associate with your content.
- Host: GitHub
- URL: https://github.com/CMB2/cmb2-term-select
- Owner: CMB2
- Created: 2016-05-29T20:53:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-30T06:14:20.000Z (over 8 years ago)
- Last Synced: 2024-03-22T09:15:58.772Z (8 months ago)
- Topics: cmb2, php, wordpress
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-wp-developer-tools - CMB2 Term Select - Select terms to associate with your content. (WordPress Plugins)
README
# CMB2 Term Select
Special CMB2 Field that allows users to define an autocomplete text field for terms.
### Example
```php
$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
// ),
) );
```