-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the CMB2 wiki! This is a code library for WordPress themes and plugins that makes it easy to add metaboxes, fields, and forms to WordPress.
The best way to get started is look at example-functions.php and read the Basic Usage tutorial.
Documentation:
-
Basic Usage
Get up and running -
Field Types
A breakdown of each of the field types included with CMB2. -
Field Parameters
A breakdown of each of the common field parameters. -
Display Options
Limit the display of your metaboxes -
Troubleshooting
Some common issues and how to deal with them -
Notable Changes in CMB2 (from original CMB)
CMB2 is a complete re-write -
Tips & Tricks
10x your CMB2 skills.
Advanced tutorials:
-
Adding your own field types
There's no limit to the kinds of fields you can make with CMB2 -
Adding your own show_on filters
Even more ways to limit the display of your metaboxes -
Displaying metaboxes on the front-end
Let's take this outside wp-admin -
Using CMB to create an Admin Theme Options Page
Optional replacement for the WordPress Settings API
External Resources:
-
CMB2 Metabox Code Generator - Generate CMB2 Metabox code with this visual form builder and save your time
-
Basic CMB2 qTranslate-X integration plugin https://wordpress.org/plugins/integration-cmb2-qtranslate/
-
Tutorial: Disable CMB2 Styles on Front End Forms