Meta Box Include Exclude 1.1.2
Description
Meta Box Include Exclude is a WordPress extension for the Meta Box plugin that helps you control where meta boxes appear in your admin. Instead of showing the same fields on every post or page, you can include or exclude meta boxes using clear conditions. This solves common clutter issues where users see irrelevant metadata on the wrong templates, categories, or taxonomies. The result is a cleaner editing experience and more consistent configuration across your site.
Built for developers, it supports multiple rules with AND/OR logic and also lets you use a custom function when the default conditions aren’t enough. It can evaluate conditions based on IDs, slugs, page templates, taxonomy terms, and user roles (via MB User Meta), making it scalable for larger WordPress projects.
Main Features
- Include or exclude meta boxes — Show or hide meta boxes based on the conditions you define.
- AND/OR rule combinations — Combine multiple restrictions to match complex display logic.
- Post ID conditions — Target specific posts to control meta box visibility accurately.
- Parent ID conditions — Apply rules to child content based on parent relationships.
- Post slug conditions — Control meta box display using post slugs for fine-grained targeting.
- Page template conditions — Show meta boxes only when a specific WordPress page template is used.
- Category, tag, and custom taxonomies — Restrict visibility by taxonomy terms, including custom taxonomies.
- User role and user ID support — Work with MB User Meta to display meta boxes per role or user.
- Custom conditional function — Add your own PHP function to decide whether to include or exclude a meta box.
Benefits
- Cleaner admin UX — Editors see only the fields relevant to the content type they’re working on.
- Reduced data-entry errors — Prevents users from filling metadata on pages where it won’t be used.
- More consistent configuration — Keeps meta box placement aligned with templates, categories, and taxonomies.
- Scales with complex sites — Multiple rules and logical operators help maintain control across many templates and content types.
- Developer-friendly flexibility — Custom functions extend conditional logic beyond built-in checks.
Who is it suitable for?
- WordPress developers extending the Meta Box plugin with conditional admin fields.
- Teams managing large content catalogs with templates, categories, and custom taxonomies.
- WooCommerce stores that use Meta Box for product- or page-specific metadata workflows.
- Agencies building reusable setups with Elementor/Theme templates and consistent editor experiences.
- Content-heavy sites where different roles need different metadata inputs.
- Sites that require rule-based field visibility without custom template duplication.