Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Show/Hide Content at Set Time icon

Show/Hide Content at Set Time

v2.5
by Dave Clements · 4.9 (33 reviews)

Shortcodes to wrap around text, which specify at what date or time that content should appear or disappear, either once, or on a recurring basis.

10K+ active installs Updated Oct 01, 2019 Tested to 5.2.21
Try Demo Download
Pre-installed Ready in ~10s No card

About Show/Hide Content at Set Time

This plugin allows you to show or hide content on your website at specific dates and times. You can also set up a recurring schedule to automatically show and hide content. It is easy to use and provides flexibility for displaying content based on time restrictions.

Frequently asked questions

What does the Show/Hide Content at Set Time plugin do?
This plugin provides shortcodes to display or hide content at specified dates and times. It allows for content to appear or disappear once, or on a recurring basis.
How can I use this plugin for single-use content scheduling?
You can use the [time-restrict] shortcode, specifying an 'on' or 'off' date and time. For example, [time-restrict off="2015-01-01"] will hide content from that date.
Can I combine starting and ending dates for content display?
Yes, you can combine 'on' and 'off' attributes within the same [time-restrict] shortcode to define a specific display period.
Does the plugin support recurring content schedules?
Yes, there is a separate shortcode available for repeating schedules. This is useful for content that needs to appear and disappear regularly, such as for a radio show.
What date and time formats are supported?
The plugin supports any date or time string that is compatible with PHP, such as "September 10th, 2014" or "2014/09/10 18:00:00".

Changelog

2.5

Release date: December 14, 2016

  • Addition of else parameter.
  • Retire old (pre v2.0) shortcodes.

2.4

Release date: May 23, 2016

  • Coding standards, logic and performance improvements.

2.3.1

Release date: August 31, 2015

  • Corrected an error in the weekly logic (props Jérôme)

2.3

Release date: December 5, 2014

  • Introduced recurring annual schedule (previously only monthly/weekly/daily). Just use type=”annually” in your shortcodes.
  • Code improvements.

2.2

Release date: October 9, 2014

  • Fixed inability to nest shortcodes by introducing distinct copies of the time-restrict-repeat shortcode ([time-restrict-repeat-2] and [time-restrict-repeat-3])

2.1.1

Release date: October 2, 2014

  • Fixed error where content would show all the time when either onday and offday matched, or offdate and ondate matched.

2.1

Release date: August 30, 2014

  • Revised code to allow for onday and offday being the same. Same for ondate and offdate.
  • Changed attributes for [time-restrict] shortcode to be more in line with the rest of the plugin. Now using ‘on’ and ‘off’ instead of ‘show’ and ‘hide’, though the show and hide attributes will continue to work.

2.0

Release date: August 22, 2014

  • New combined [time-restrict] shortcode allows for hide and show times for the same piece of content
  • New [time-restrict-repeat] shortcode allows you to show and hide content on a daily, weekly or monthly recurring basis
  • Code improvements
  • Legacy shortcode support
  • Enables nesting shortcodes within new shortcodes
  • Plugin now respects site’s local time, rather than server time

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.