Custom Metaboxes and Fields for WordPress (CMB2) Now Out of Beta

photo credit: Different types of wand cases stacked - (license)
photo credit: Different types of wand cases stacked(license)

The Custom Metaboxes and Fields for WordPress (CMB2) plugin is now officially out of beta and ready for public use. The tool was created to make it easy for developers to create metaboxes and forms with custom fields. Developers at WebDevStudios took over the original CMB GitHub repository from Jared Atchison, its original creator, in December of 2013.

Justin Sternberg explained why WebDevStudios chose to start contributing to the CMB2 project:

After having been burned by some issues with other custom field plugins, we determined it was best to stick with code that we had some control over. We fell in love with CMB because it was a library we could include in any of our projects and it would just work while letting us keep all of the field configuration in the code, and more importantly, in our version control system.

Due to irreconcilable shortcomings in the original CMB, WebDevStudios opted to fork the project and create a new one that wouldn’t have the same backwards compatibility requirements. If you used CMB in the past, it’s important to note that the new CMB2 project has renamed every class, function, hook, and filter in the library to avoid conflicts with the original. It’s essentially a complete re-write.

“CMB2 was built with a new mechanism to ensure it only loads the most recent version of CMB2 in your system,” Sternberg said. “This ensures that a plugin with an old bundled version will not conflict or take precedence over your up-to-date version.”

The new CMB2 is now available on as a plugin for easy activation when you want to use it with one of your projects. As an alternative, you can include CMB2 directly. The newly released plugin features the following:

The WebDevStudios team plans to maintain strict backwards compatibility moving forward, as of CMB2’s 2.0.1 release on If you want to include CMB2 as part of your next project, make sure to check out the plugin’s wiki and code library for tips on how to add metaboxes, fields, and forms to WordPress themes and plugins.


10 responses to “Custom Metaboxes and Fields for WordPress (CMB2) Now Out of Beta”

  1. Wow I am the first to comment! I really love these WordPress “specialised mini frameworks”. They enable me to learn and enhance without bloat.
    With apologies in advance if this sounds ridiculous, it would be great if the metaboxes/fields could be exposed to the Customizer via the Customize Posts plugin.
    In reference to the post about WordPress and innovation – what enables innovation is the combining of disparate technologies to generate heretofore unavailable functions and features. Accessing the output of this plugin in the Customizer would be a quantum leap for WordPress.

  2. This might be an obnoxious question to leave here, but is there any other resource for adding your own custom field types in CMB2, other than the main GitHub page for it? I’m trying to create a mix between textarea and textarea_code (basically, a non-WYSIWYG textarea, that will still allow basic HTML to work), but getting very lost in the details of how to go about this. Any advice would be much appreciated.

    • And now, embarrassingly, I’ve discovered that I shouldn’t need a custom field type for this. I should just be able to change rows in the attribute array, but for some reason, that’s not working for me. Ah, well, such is life, and I’ll work on that. Sorry to pester you all.


Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

%d bloggers like this: