Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.
Installation instructions for various environments
Get up and running
Not for the faint of heart
A breakdown of each of the field types included with CMB2.
Examples for registering fields for the different object types.
A breakdown of each of the common field parameters.
Limit the display of your boxes
Docs for the possible CMB2 box properties.
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 boxes
Displaying boxes 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