WP Manifestindependent plugin directory
manifest / developer / cmb2-term-select

CMB2 Term Select

Select terms to associate with your content.

★ 8stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/cmb2/cmb2-term-select/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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
    // ),
) );