Skip to content

How to Set WordPress Display Conditions Based on Date & Time?

Key Takeaways

  • Nexter Blocks Pro requiere activar Display Rules en Nexter > Blocks para usar Current Date, Time of Day y Day of Week en un bloque de WordPress.
  • Current Date muestra el bloque cuando la fecha actual cae entre Start Date y End Date, ambos incluidos, mientras Time of Day actúa como un corte y solo muestra el bloque antes de la hora fijada.
  • Day of Week muestra el bloque en los días marcados, pero lee el día del servidor en UTC y no la zona horaria configurada del sitio.
Table of Contents

A countdown banner that never comes down, or a weekend offer that shows on a Tuesday, undermines itself.

Three related Pro conditions cover this: Current Date for a date range, Time of Day for a daily cutoff, and Day of Week for which days a block appears.

For every Dynamic Device setting in one place, see the Display Rules feature guide.

Before You Start

  • Edition: Pro — Date, Time and Day of Week all need Nexter Blocks Pro.
  • Block to enable: Display Rules, switched on under Nexter > Blocks in your WordPress dashboard.

Steps

  1. Open the block you want to control, go to Advanced > Nexter : Display Rules, and switch on Display Rules.
The Display Rules toggle
  1. Set Rule to the condition you want to check.
The Rule setting
  1. For a date range, set Rule to Current Date and pick a Start Date and End Date.
The Current Date rule and its calendar
  1. For a daily cutoff, set Rule to Time of Day and pick a time.
  1. For specific days, set Rule to Day of Week and pick one or more days.

Time of Day is a cutoff, not a start time. Measured: a time set two hours in the future showed the block; the same rule set two hours in the past hid it. The block shows only until that time each day, then disappears — there is no separate “after this time” mode.

How It Behaves

RuleConfirmed behaviour
Current DateShows the block whenever today falls between Start Date and End Date, both dates included — measured, an ordinary inclusive range.
Time of DayShows the block only before the time you set, every day — measured directly, future time showed it, past time hid it.
Day of WeekShows the block on the days you tick. Reads the server’s day in UTC, not the site’s configured timezone — on a site set far from UTC, a visitor close to midnight can see a different day evaluated than their own calendar shows.

Limitations

  • Time of Day has no “after this time” mode — for a window, combine it with a second Time of Day rule and Display When: All Rules are True.
  • Day of Week uses the server’s UTC day, not your site’s timezone — worth knowing if your site is set far from UTC and a rule seems to flip a little early or late.
  • Dates and times use the site’s own clock, not the visitor’s — a visitor in a different timezone sees the same cutoff at a different local time for them.

Troubleshooting

My block disappeared right at the time I set

That is expected — Time of Day is a cutoff, measured. The block shows only until that time, not starting from it.

I want a block to show only between two times of day

Add two Time of Day rules and set Display When to All Rules are True — one rule Is before your end time, another rule Not before your start time.

The day seems to change at the wrong moment

Day of Week reads the server’s UTC day rather than your site’s timezone — on a site set well away from UTC, the changeover can land at an unexpected local time.

Related Docs

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What do I need before setting WordPress display conditions based on date and time?

Nexter Blocks Pro is required for Date, Time, and Day of Week conditions. The block also needs Display Rules switched on under Nexter > Blocks in your WordPress dashboard. That matters because the date and time logic only works once the block is actually controlled by Display Rules, not just edited in the block settings. For the broader rule setup, the Display Rules feature guide covers the same system in one place.

Why did my block disappear exactly when the time I set was reached?

That behavior is expected because Time of Day is a cutoff, not a start time. The block shows only until the time you set, then disappears at that moment each day. In testing, a time two hours in the future kept the block visible, while the same rule two hours in the past hid it. If you want a window instead of a cutoff, you need two Time of Day rules with Display When set to All Rules are True.

How do I show a block only between two times of day in WordPress?

Use two Time of Day rules together and set Display When to All Rules are True. One rule should be Is before your end time, and the other should be Not before your start time. That creates a real time window instead of a simple cutoff. This matters because Time of Day has no separate after-this-time mode, so a single rule cannot define both sides of the range.

Why does my day-based display rule change at the wrong local time?

Day of Week reads the server’s UTC day, not your site’s configured timezone. On sites set far from UTC, that can make the rule flip earlier or later than your local calendar expects, especially near midnight. The practical fix is to treat Day of Week as UTC-based logic when planning weekend offers or weekday-only banners. Dates and times use the site’s own clock, but this specific rule does not.

Does date and time display logic use my visitor’s timezone or my site’s timezone?

Dates and times use the site’s own clock, not the visitor’s. That means every visitor sees the same cutoff from your site’s perspective, but their local clock may show a different hour when it happens. This is important for countdown banners and timed offers because a user in another timezone can see the change at a different local moment even though the rule itself is consistent.

What’s the difference between Current Date, Time of Day, and Day of Week?

Current Date shows a block during an inclusive date range between Start Date and End Date. Time of Day shows it only before a specific time each day. Day of Week shows it on whichever days you tick. Nexter Blocks Pro uses these three conditions for different scheduling jobs: campaigns with fixed dates, daily cutoffs, and weekday targeting all behave differently.

Last reviewed: September 17, 2026

Related Docs