CMB2 Plus
Common utility classes for the CMB2 plugin on WordPress.
by log.OSCON, Lda. · github.com/log-oscon/cmb2-plus · website
★ 0stars
0forks
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/log-oscon/cmb2-plus/archive/refs/heads/master.zipDeclares an update source (https://github.com/log-oscon/cmb2-plus), so updates arrive through the plugin's own updater.
Readme
CMB2 Plus
Common utility classes for the CMB2 plugin on WordPress.
Usage
A dropdown for taxonomy terms which does NOT set the term on the post
$cmb->add_field( array(
'name' => 'Featured Category',
'desc' => 'Set a featured category for this post.',
'id' => '_cmb2_featured_category',
'type' => 'select',
'options_cb' => 'cmb2_get_term_options',
'get_terms_args' => array(
'taxonomy' => 'category',
'hide_empty' => false,
),
) );
Front Page show_on filter
This shows only if a static page is set and you're editing it.
'show_on' => array( 'key' => 'front-page', 'value' => '' ),
Changelog
1.0.0
- Initial release.