logoscon / cmb2-plus
Common utility classes for the CMB2 plugin on WordPress.
Installs: 4 692
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires (Dev)
This package is not auto-updated.
Last update: 2024-12-21 20:57:58 UTC
README
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.