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.
To get started, please follow the examples in the included
- PHP 5.2.4+
- Wordpress 3.8+
A complete list of all our awesome contributors found here: github.com/jcchavezs/cmb2-conditionals/graphs/contributors
If installing the plugin from wordpress.org:
- Upload the entire
/cmb2-conditionalsdirectory to the
- Activate CMB2 Conditionals through the 'Plugins' menu in WordPress.
- Copy (and rename if desired)
example-functions.phpinto to your theme or plugin's directory.
- Edit to only include the fields you need and rename the functions.