CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.
CMB2 is a developer's toolkit for building metaboxes, custom fields, and forms for WordPress that will blow your mind.
CMB2 is a complete rewrite of Custom Metaboxes and Fields for WordPress. To get started, please follow the examples in the included example-functions.php
file and have a look at the basic usage instructions.
You can see a list of available field types here.
custom_attached_posts
, for attaching posts to a page.post_search_text
adds a post-search dialog for searching/attaching other post IDs.user_search_text
adds a user-search dialog for searching/attaching other User IDs.rgba_colorpicker
adds a color picker that supports RGBa, (RGB with transparency (alpha) value).CMB2 Field Type: Google Maps from mustardBees: Custom field type for Google Maps.
The
pw_map
field stores the latitude/longitude values which you can then use to display a map in your theme.
CMB2 Field Type: Select2 from mustardBees: Custom field types which use the Select2 script:
- The
pw_select 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- The
pw_multiselect
field allows you to select multiple values with typeahead-style search. The values can be dragged and dropped to reorder
CMB Field Type: Slider from mattkrupnik: Adds a jQuery UI Slider field.
All contributions welcome. If you would like to submit a pull request, please check out the trunk branch and pull request against it. Please read the CONTRIBUTING doc for more details.
A complete list of all our awesome contributors found here: github.com/WebDevStudios/CMB2/graphs/contributors
yourprefix_register_taxonomy_metabox
function in example-functions.php.'cmb2_save_field'
and "cmb2_save_field_{$field_id}"
. Props wpsmith (#475).CMB2::show_form()
is now composed of 3 smaller methods, CMB2::render_form_open()
, CMB2::render_field()
, CMB2::render_form_close()
(#506)..gitattributes
file for excluding development resources when using Composer. Props @benoitchantre (#575, #53).'taxonomy_select'
field type where a term which evaluated falsey would not be displayed properly. Props adamcapriola (#477).'show_option_none'
field parameter now works on taxonomy fields when explicitly setting to false.'date_format'
and 'time_format'
field parameters. Props @yivi (#39, #282, #300, #318, #330, #446, #498).
Требуемая версия: 3.8.0 или выше
Совместим вплоть до: 4.4.2
Обновление: 1 месяц назад
Активных установок:
20 000+
5 из 22 тем на форумах поддержки за последние два месяца были решены.
Есть комментарии? Нужна помощь?