Clone this wiki locally
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. Easily manage meta for posts, terms, users, comments, or create custom option pages.
Get up and running
A breakdown of each of the field types included with CMB2.
A breakdown of each of the common field parameters.
Limit the display of your metaboxes
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.
Access your CMB2 data through the WordPress REST API.
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
Create New Posts (or Custom Post Type) Entries Using A Front End Form
Leverage CMB2 create a front-end submission form
CMB2 Metabox Code Generator - Use this generator to create fully functional CMB2 metaboxes easily.
Tutorial: Disable CMB2 Styles on Front End Forms