CMB2 Field Type: Select2
Select2 field type for Custom Metaboxes and Fields for WordPress
by Phil Wylie · github.com/mustardbees/cmb-field-select2 · website
★ 91stars
46forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mustardbees/cmb-field-select2/archive/refs/heads/master.zipDeclares an update source (https://github.com/mustardBees/cmb-field-select2), so updates arrive through the plugin's own updater.
From the readme
CMB2 Field Type: Select2
Description
Select2 field type for CMB2.
This plugin gives you two additional field types based on Select2:
1. The pwselect field acts much like the default select field. However, it adds typeahead-style search allowing you to quickly make a selection from a large list
2. The pwmultiselect field allows you to select multiple values with typeahead-style search. The values can be dragged and dropped to reorder
Installation
You can install this field type as you would a WordPress plugin:
1. Download the plugin
2. Place the plugin folder in your /wp-content/plugins/ directory
3. Activate the plugin in the Plugin dashboard
Alternatively, you can include this field type within your plugin/theme. The path to front end assets (JS/CSS) can be filtered using pwcmb2fieldselect2assetpath. See an example where we load assets from the current active theme.
Usage
pwselect - Select box with with typeahead-style search. Example:
pwmultiselect - Multi-value select box with drag and drop reordering. Example:
Placeholder
You can specify placeholder text through the attributes array. Example:
Custom Select2 configuration and overriding default configuration option
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v3.0.3 | Aug 25, 2016 |
| v3.0.2 | Aug 25, 2016 |
| v3.0.1 | Aug 24, 2016 |
| v3.0.0 | May 25, 2016 |
| v2.0.4 | Feb 4, 2015 |
| v2.0.3 | Sep 18, 2014 |
| v2.0.2 | Sep 17, 2014 |
| v2.0.1 | Sep 16, 2014 |
| v2.0.0 | Sep 11, 2014 |
| v1.0.1 | Sep 10, 2014 |
| v1.0.0 | Aug 12, 2014 |
| v0.3 | Mar 20, 2014 |
| v0.2 | Feb 9, 2014 |
| v0.1 | Feb 7, 2014 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.