PHPackages                             jcchavezs/cmb2-conditionals - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jcchavezs/cmb2-conditionals

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

jcchavezs/cmb2-conditionals
===========================

CMB2 Conditionals is a plugin for CMB2 which allows developers to relate fields so one of them could only appear when one other have an specific value or when is not empty.

928.1k↓71.4%61[37 issues](https://github.com/jcchavezs/cmb2-conditionals/issues)[10 PRs](https://github.com/jcchavezs/cmb2-conditionals/pulls)PHP

Since Apr 24Pushed 5y ago7 watchersCompare

[ Source](https://github.com/jcchavezs/cmb2-conditionals)[ Packagist](https://packagist.org/packages/jcchavezs/cmb2-conditionals)[ RSS](/packages/jcchavezs-cmb2-conditionals/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

CMB2 Conditionals
=================

[](#cmb2-conditionals)

[![Join the chat at https://gitter.im/jcchavezs/cmb2-conditionals](https://camo.githubusercontent.com/c680413da4e760978cd41e978af62d96bcb4c543798dde3827bc19ad664d6b7e/68747470733a2f2f6261646765732e6769747465722e696d2f6a6363686176657a732f636d62322d636f6e646974696f6e616c732e737667)](https://gitter.im/jcchavezs/cmb2-conditionals?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Total Downloads](https://camo.githubusercontent.com/44580740198a4d9b46d9c41e774171927a6cb36eeaad3fef7a43fabc43882b02/68747470733a2f2f706f7365722e707567782e6f72672f6a6363686176657a732f636d62322d636f6e646974696f6e616c732f646f776e6c6f616473)](https://packagist.org/packages/jcchavezs/cmb2-conditionals)[![License](https://camo.githubusercontent.com/3dcf620a68d25056229e05ee20c4343c8c1aaf1449894424d54bbe193ef8efd5/68747470733a2f2f706f7365722e707567782e6f72672f6a6363686176657a732f636d62322d636f6e646974696f6e616c732f6c6963656e7365)](https://packagist.org/packages/jcchavezs/cmb2-conditionals)

**Contributors:** [jcchavezs](https://github.com/jcchavezs), [jrfnl](https://github.com/jrfnl)**Tags:** cmb2, conditionals, metaboxes
**Requires at least:** 3.8.0
**Tested up to:** 4.3
**Stable tag:** 1.0.4
**License:** GPLv2 or later
**License URI:**

Disclaimer
----------

[](#disclaimer)

This plugin is loved by many people but unfortunately I can not maintain it anymore so if you want to be a contributor just [ping me on gitter](https://gitter.im/jcchavezs).

Description
-----------

[](#description)

**CMB2 Conditionals** is a plugin for [CMB2](https://github.com/WebDevStudios/CMB2) which allows developers to relate fields so one of them could only appear when one other have an specific value or when is not empty.

To get started, please follow the examples in the included `example-functions.php` file.

Requirements
------------

[](#requirements)

- PHP 5.2.4+
- Wordpress 3.8+
- CMB2

Contribution
------------

[](#contribution)

All contributions welcome. If you would like to submit a pull request, please check out the [master branch](https://github.com/jcchavezs/cmb2-conditionals/tree/master) and pull request against it. Please read the [CONTRIBUTING](https://github.com/jcchavezs/cmb2-conditionals/blob/master/CONTRIBUTING.md) doc for more details.

A complete list of all our awesome contributors found here: [github.com/jcchavezs/cmb2-conditionals/graphs/contributors](https://github.com/jcchavezs/cmb2-conditionals/graphs/contributors)

Installation
------------

[](#installation)

If installing the plugin from wordpress.org:

1. Upload the entire `/cmb2-conditionals` directory to the `/wp-content/plugins/` directory.
2. Activate CMB2 Conditionals through the 'Plugins' menu in WordPress.
3. Copy (and rename if desired) `example-functions.php` into to your theme or plugin's directory.
4. Edit to only include the fields you need and rename the functions.
5. Profit.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b5352392ac3b571d5e5d144f6e992040e46726c0863552882cdd8d2577c2eb7?d=identicon)[jcchavezs](/maintainers/jcchavezs)

---

Top Contributors

[![jcchavezs](https://avatars.githubusercontent.com/u/3075074?v=4)](https://github.com/jcchavezs "jcchavezs (39 commits)")[![jrfnl](https://avatars.githubusercontent.com/u/663378?v=4)](https://github.com/jrfnl "jrfnl (9 commits)")[![jtsternberg](https://avatars.githubusercontent.com/u/1098900?v=4)](https://github.com/jtsternberg "jtsternberg (3 commits)")[![jonathanstegall](https://avatars.githubusercontent.com/u/435342?v=4)](https://github.com/jonathanstegall "jonathanstegall (1 commits)")[![jhotadhari](https://avatars.githubusercontent.com/u/25547694?v=4)](https://github.com/jhotadhari "jhotadhari (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")[![cleverinx](https://avatars.githubusercontent.com/u/6957631?v=4)](https://github.com/cleverinx "cleverinx (1 commits)")

---

Tags

cmb2cmb2-conditionalswordpress

### Embed Badge

![Health badge](/badges/jcchavezs-cmb2-conditionals/health.svg)

```
[![Health](https://phpackages.com/badges/jcchavezs-cmb2-conditionals/health.svg)](https://phpackages.com/packages/jcchavezs-cmb2-conditionals)
```

###  Alternatives

[coldtrick/widget_manager

Manage your widgets

214.4k](/packages/coldtrick-widget-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
