WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Justin Sternberg v2.12.0

CMB2

CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.

CMB2

The facts

Rating
5★ from 91
Active installs
300k+
Price
Free
Last updated
31 May 2026
Added
Sep 2014
Requires WP
3.8.0
Tested up to
WP 7.0.4
Requires PHP
7.4
Downloads
5,230,311

Our analysis

AI-assisted

CMB2 is a WordPress plugin designed for developers to create metaboxes, custom fields, and forms. It allows you to manage metadata for posts, terms, users, and comments, as well as create custom option pages. The plugin is built to be flexible, enabling the use of forms in various locations, including the front-end of a site.

The plugin includes a variety of field types and supports repeatable fields and field groups. It also offers a custom API hook for creating your own field types and numerous hooks and filters for modifying the library's functionality. CMB2 is suited for developers looking to enhance their WordPress projects with custom metadata management.

Best for: This plugin is best for developers looking to implement custom fields and metaboxes in WordPress.

What it does well

  • Supports creating metaboxes and custom fields
  • Flexible API for front-end use
  • Includes several field types and repeatable fields
  • Custom API hook for creating new field types
  • Comprehensive documentation available

Where it falls short

  • Primarily aimed at developers, not end-users
  • Limited information on specific use cases

Verdict

CMB2 is a robust toolkit for developers needing to create custom metadata solutions in WordPress. Its flexibility and extensive documentation make it a useful resource for enhancing WordPress sites.

From the developer

Justin Sternberg's own description of CMB2, lightly tidied.

CMB2 is a developer’s toolkit for building metaboxes, custom fields, and forms for WordPress that will blow your mind. Easily manage meta for posts, terms, users, comments, or create custom option pages.

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.

Contribution

Development occurs on Github, and all contributions welcome. Please read the CONTRIBUTING doc for more details.

A complete list of all our awesome contributors found here: github.com/CMB2/CMB2/graphs/contributors

Features:

Translation

If you are looking to provide language translation files, Please do so via WordPress Plugin Translations.

Documentation

  • CMB2 documentation can be found at the CMB2 wiki on github. Also, If you’re into reading code and inline documentation, we tried to keep all functions and methods fully inline-documented.

3rd Party Resources

Custom Field Types

Other Helpful Resources

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for custom content structures.

Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
Advanced Custom Fields

ACF helps customize WordPress with powerful, professional and intuitive fields. Proudly powering over 2 millio...

Free 2M+ installs 4.5★ (1,438)
Simple Custom Post Order

Easily reorder posts, pages, custom post types, and taxonomies with intuitive drag-and-drop sorting in the Wor...

Free 300k+ installs 4.8★ (569)
WP Activity Log

The #1 user-rated activity log plugin for event logging, activity monitoring and change tracking.

Free 300k+ installs 4.7★ (488)
Custom Post Type UI

Admin UI for creating custom content types like post types and taxonomies

Free 1M+ installs 4.6★ (276)