Elementor Custom Taxonomy Display Conditions
Extends Elementor Pro's Display Conditions feature to support every public custom taxonomy registered on your WordPress site.
by Luke Lanza · github.com/aznalfl/elementor-custom-taxonomy-display-conditions · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/aznalfl/elementor-custom-taxonomy-display-conditions/archive/refs/heads/main.zipExtends Elementor Pro's Display Conditions feature to support every public custom taxonomy registered on your WordPress site.
Out of the box, Elementor Pro only lets you filter by the built-in Categories and Tags taxonomies. This plugin automatically adds a separate condition for each custom taxonomy (e.g. Genre, Brand, Location) so you can show or hide any element based on what terms a post belongs to.
Requirements
| Requirement | Version |
|---|---|
| WordPress | 6.0+ |
| PHP | 8.0+ |
| Elementor (free) | Latest |
| Elementor Pro | Latest (Display Conditions feature must be active) |
Installation
- Copy the
elementor-custom-taxonomy-conditionsfolder into yourwp-content/plugins/directory. - Go to Plugins → Installed Plugins in your WordPress admin and activate Elementor Custom Taxonomy Display Conditions.
- No configuration is required — the plugin reads your registered taxonomies automatically.
Usage
- Open any page or template in the Elementor editor.
- Select the element (widget, container, section) you want to conditionally show or hide.
- Open the Advanced tab and click Display Conditions.
- Click + Add Condition.
- In the condition dropdown, look under the Post group — you will see one entry for each of your custom taxonomies, labelled "In [Taxonomy Name]" (e.g. In Genre, In Brand).
- Set the operator to Is or Is Not.
- Type in the search field to find and select one or more terms from that taxonomy.
- Save. The element will only render when the condition is met.
Example
You have a custom post type Movies with a custom taxonomy Genre (terms: Action, Comedy, Drama).
To show a "Not suitable for children" banner only on Action and Drama movies:
- Condition: In Genre
- Operator: Is
- Terms:
Action,Drama
To hide a widget on everything except Comedy movies, add a second condition using Is Not for the other genres, or invert the logic using Elementor's OR/AND condition groups.
How It Works
The plugin hooks into Elementor Pro's elementor/display_conditions/register action, which fires after all built-in conditions are registered. At that point it calls get_taxonomies() to collect every public, non-built-in taxonomy, then registers one condition instance per taxonomy using Elementor Pro's register_condition_instance() API.
Each condition uses Elementor Pro's built-in Query Control to power the searchable term picker, so it behaves identically to the native Categories and Tags conditions.
Condition logic
| Post has terms? | Operator | Result |
|---|---|---|
| Yes, matches selection | Is | Visible |
| Yes, no match | Is | Hidden |
| No terms at all | Is | Hidden |
| Yes, matches selection | Is Not | Hidden |
| Yes, no match | Is Not | Visible |
| No terms at all | Is Not | Visible |
| No terms selected in editor | Either | Always visible (non-restrictive) |
Notes
- Built-in taxonomies are not duplicated.
categoryandpost_tagare intentionally excluded because Elementor Pro already provides In Categories and In Tags conditions. - New taxonomies are picked up automatically. If you register a new custom taxonomy later (via a plugin or your theme), it will appear in the Display Conditions list on the next page load — no plugin update required.
- The plugin does nothing if Elementor Pro is inactive. All extension code runs inside the Elementor Pro hook, so there are no fatal errors if Elementor Pro is deactivated.
License
GPL-2.0-or-later — see https://www.gnu.org/licenses/gpl-2.0.html