C
Fields Free WordPress.org

CMB2

5.0 (91 reviews)
· 300K+ active installs · By Justin Sternberg
Active Installs
300K+
Rating
5.0 / 5
Version
v2.12.0
Last Updated
May 2026
Share

Plugin Review

AI-Researched

What is CMB2?

CMB2 is a developer toolkit for building metaboxes, custom fields, and forms in WordPress. Created by Justin Sternberg, this plugin has been actively maintained for 12 years. It manages meta data for posts, terms, users, comments, and custom option pages. The plugin currently has over 300,000 active installs with a perfect 5.0/5 rating from 91 reviews. 99% of those ratings are five-star, with only 1% at one-star.

CMB2 is a complete rewrite of the earlier Custom Metaboxes and Fields library. It provides a flexible API that works on both admin screens and the front-end. The plugin requires WordPress 3.8+ and PHP 7.4+, making it compatible with nearly every modern WordPress site. Its longevity and consistent updates show a stable, mature codebase that developers trust.

Key Features of CMB2

  • Metabox Creation for Post Screens — Build custom metaboxes that appear directly on post edit screens for any post type.
  • Options Page Forms — Create full settings pages with CMB2 forms for theme or plugin options.
  • User and Term Meta Support — Handle user profile fields and taxonomy term meta with the same API.
  • Front-End Form Capability — Use CMB2 forms anywhere on your site, not just the admin area.
  • Built-In Field Types — Includes text, textarea, select, radio, checkbox, file upload, WYSIWYG, and more.
  • Custom Field Type API — Extend CMB2 with your own field types using its hook system.
  • Repeatable Fields and Groups — Add unlimited repeating fields and grouped field sets for complex data.
  • Safe Bundling for Projects — CMB2 loads only the newest version when bundled with multiple plugins or themes.

Who Should Use CMB2?

CMB2 is built for WordPress developers and advanced site builders. You should be comfortable editing PHP files and understanding hooks. The plugin is not designed for casual users who want a point-and-click interface. Ideal users include theme developers, plugin authors, and agencies building custom client sites. With 300,000+ active installs, it powers many professional WordPress projects.

The plugin works well for sites needing custom post meta, user profiles, or settings pages without bloat. Developers building membership sites, real estate listings, event directories, or any custom content type will find CMB2 useful. Its 12-year history and 100% support resolution rate over the last two months show a reliable tool for production environments. The 99% five-star rating confirms its value for technical users.

Installation & Setup

Install CMB2 by uploading the plugin directory to /wp-content/plugins/ and activating it through the WordPress admin. The plugin provides an example-functions.php file you copy into your theme or plugin to start building fields. Setup requires editing PHP code, so beginners should expect a learning curve.

Support & Community

Support data from the last two months shows 1 open thread and 1 resolved thread, giving a 100% resolution rate. This indicates a mature plugin with few active issues. The plugin is developed on GitHub where all contributions are welcome. The contributors list includes many community members who have submitted custom field types and fixes.

The rating breakdown is clear: 99% of 91 ratings are five-star. Only one rating is one-star, suggesting isolated issues rather than systemic problems. Documentation lives on the GitHub wiki, and all functions include inline code comments. Third-party developers have created field types for Google Maps, Leaflet Maps, Select2, Ajax search, and post attachment fields, extending CMB2's usefulness further.

Pros & Cons

What's Good
  • With over 300,000 active installs and a 5.0/5 rating from 91 reviews, CMB2 is one of the most trusted and well-regarded metabox frameworks in the WordPress ecosystem.
  • It supports repeatable fields and field groups for most field types, enabling complex data structures without custom code.
  • The plugin offers a flexible API that works on post edit screens, options pages, user profiles, term meta, and even front-end forms.
  • CMB2 includes numerous hooks and filters for customization, and its inline documentation and GitHub wiki provide thorough guidance for developers.
  • It is safe to bundle with any project because it only loads the newest version in the system, preventing conflicts with other plugins or themes.
Drawbacks
  • The plugin is designed for developers and lacks a visual interface, requiring manual PHP coding to create and manage metaboxes.
  • Its documentation is primarily on GitHub and relies on inline code comments, which can be less accessible for less experienced WordPress users.
  • With only 91 total ratings (despite 300K+ installs), the rating sample is small and may not fully represent user experience across all use cases.
  • The plugin has no built-in support for conditional logic or dynamic field visibility, forcing developers to implement such features manually.

Technical Details

Requires WordPress
3.8.0+
Requires PHP
7.4+
First Released
2014 (12+ years)
Support (last 2 months)
1 threads  —  100% resolved

Feature Tags

fields forms metaboxes options settings

Frequently Asked Questions