Display Conditions
Show or hide any element based on server-side logic. Conditions are evaluated before the page is sent to the browser — elements that fail their conditions are never rendered in the HTML.
Condition types
Each row in the Ele Conditions repeater is one condition. You can add as many as needed and connect them with AND/OR logic.
| Type | Description |
|---|---|
| Variable comparison | Compare a variable (user role, post status, cart total, UTM…) to a value using an operator |
| Time interval (daily, HH:MM) | Show the element only during a specific time window, every day |
| Date / time interval (YYYY-MM-DD) | Show the element only within a specific date range |
Variable comparison
The most versatile type. Choose a variable, an operator, and a value to compare against.
- Set Type to
Variable comparison - Choose a variable from the Variable dropdown (or select
Type manually…) - Choose an Operator
- Enter the Value to compare against
Operators
| Operator | Meaning | Example |
|---|---|---|
== (equal) | Loose equality | user_role == administrator |
!= (not equal) | Loose inequality | post_status != draft |
=== (strict equal) | Exact type + value match | is_logged_in === true |
!== (strict not equal) | Exact mismatch | — |
> (greater than) | Numeric | cart_count > 0 |
< (less than) | Numeric | post_age_days < 7 |
>= (greater or equal) | Numeric | cart_total >= 50 |
<= (less or equal) | Numeric | current_hour <= 18 |
Practical examples
| What you want | Variable | Operator | Value |
|---|---|---|---|
| Show only to logged-in users | is_logged_in | == | true |
| Show only to administrators | user_role | == | administrator |
| Show a banner when cart has items | cart_count | > | 0 |
| Hide on draft posts | post_status | != | draft |
| Show only on pages (not posts) | post_type | == | page |
| Show for email campaign visitors | utm_medium | == | email |
| Show new posts only (last 7 days) | post_age_days | < | 7 |
| Show posts with a featured image | post_has_thumbnail | == | true |
ACF / Meta fields
- Select ACF / Meta field (dropdown)… from the Variable dropdown
- A second dropdown appears with all fields found in your database — select your field
- If the field is not listed, select
— type manually —and enter the field key
User meta fields
- Select User meta field… from the Variable dropdown
- Enter the meta key (the field name as stored in
wp_usermeta)
Custom variable (manual)
Select Type manually… to enter any variable name directly. Useful for custom variables registered by your theme or a developer. See Custom variables for how to register your own.
Time interval (daily)
Shows the element only during a specific daily time window.
- Set Type to
Time interval (daily, HH:MM) - Enter From time in
HH:MMformat (e.g.09:00) - Enter To time in
HH:MMformat (e.g.17:00)
The time window is evaluated using your WordPress timezone (Settings → General). Cross-midnight ranges are supported — 22:00 to 06:00 correctly spans 10 PM to 6 AM.
| From | To | Effect |
|---|---|---|
09:00 | 17:00 | Business hours only |
20:00 | 23:00 | Evening promotion |
22:00 | 06:00 | Night mode content (cross-midnight) |
Date / time interval
Shows the element only within a specific date range. Both From and To are optional — leave one empty for an open-ended range.
- Set Type to
Date/time interval (YYYY-MM-DD) - Click the From picker and select a date (and optionally a time)
- Click the To picker and select a date (and optionally a time)
| From | To | Effect |
|---|---|---|
2026-11-28 | 2026-11-30 | Black Friday weekend |
2026-12-24 00:00 | 2026-12-26 | Christmas (with exact start time) |
2026-01-01 | (empty) | Show from New Year onwards |
| (empty) | 2026-06-30 | Show until end of June |
AND / OR logic
The Connect next with field on each row controls how multiple conditions combine.
| Setting | Meaning |
|---|---|
| AND — all must match | The element is shown only if this condition AND the next are both true |
| OR — any must match | The element is shown if this condition OR the next is true |
Example — banner only during a Black Friday email campaign:
| Row | Condition | Connect next with |
|---|---|---|
| 1 | utm_medium == email | AND |
| 2 | Date interval 2026-11-28 to 2026-11-30 | — |
Debug mode
Enable the Debug mode switch at the bottom of the Ele Conditions section when you're not sure why a condition is passing or failing.
- The element is not hidden — it stays visible for all visitors
- A colored info block appears inside the element, visible only to Administrator or Editor roles
- The block shows: variable name, resolved value, operator, and the final result (
trueorfalse)