Schedule HTML sections to be shown or not based on a date range.
Schedule HTML sections to be shown or not based on a date range using a simple shortcode.
Right now the plug-in is enabled by using the rotator shortcode. For example, To specify we want to show a specific piece of HTML from 9am to 5pm you can use the following code:
[rotator start="9am" end="5pm"]Some custom HTML.
Where start and end parameters are using the date format specified in the php manual, so you can specify more specific dates like showing the HTML section all Tuesday between 10am and 11am, etc. Read the Other Notes section for more information.
Note: the hour range is server based time and the default timezone is UTC, in other words, it depends on the configured time of the server, you can set that in general settings at the admin console.
There is a page available at "Settings" -> "Schedule generator" in the wp admin console with a basic form which lets you generate the short code configuring different values like start and end times, among others.