Meta Box Show Hide is an extension for the Meta Box plugin, which helps developers to show/hide meta boxes by page template, post format, category or custom taxonomy. This extension uses JavaScript to show/hide elements immediately and can combine conditions (include, exclude, logical operator AND, OR) to create as many restrictions as you want.

Developers ┬ádon’t need to rewrite any meta box definitions. Just add conditions for meta boxes for where to show or hide them, then other works will be done automatically. And no need to get stuck with writing custom PHP to check.

Please note that this extension works with meta boxes, meaning it doesn’t show / hide custom fields or elements based on some rules. If you need that, or need more complex condition, please check the Meta Box Conditional Logic.

Features:

  • Allows developers to show or hide meta boxes under conditions
  • Can combine conditions using logical operator AND, OR
  • Conditions (show/hide by):
    • Page templates
    • Post formats
    • Categories
    • Custom taxonomies (hierarchy taxonomies only)
    • Input values, for example: show a meta box when selecting a value from dropdown, hide a meta box when checking a checkbox, etc. (Added in version 0.2)

Screenshot:

Show/hide meta box using Javascript