Scheduled Content

The Scheduled Content shortcode for WordPress can be used to display content only during a specific time range or date range.. Check below for example implementations and shortcode documentation:

Scheduled Content Examples

This content is not available right now. Come back later.

Content available:

From: 10.04.2030 08.00

Until: 12.04.2030 18.00

Scheduled Content Shortcodes

Shortcode
[x3m-schedule boxcolor="green" border="1px" radius="10" message="This content is not available right now. Come back later." startdate="10.04.2030" starttime="08.00" enddate="12.04.2030" endtime="18.00"]
This part of content is available only during the specified schedule.[/x3m-schedule]
The shortcode can be used to display some parts of content only during a specific time schedule, be it between certain hours every day or certain dates. Above example shows display restriction set for content included between the shortcodes.

Scheduled Content Documentation

Here are the shortcode option settings available for Scheduled Content:

Shortcode Settings Details
boxcolor=”green” this is used to set the color of the box showing the content restriction & date availability.

Color names or HEX color codes can be used to set the desired color.

border=”1px” this is used to set the box border width in pixels
radius=”10″ this is used to set the box corner radius
message=”text here” this is used to set the text inside the restriction box, announcing users the content is only available during specified times
startdate=”10.04.2030″ this is used to set the start date in DD.MM.YYYY format (day, month, year) for when the inside content becomes visible
starttime=”08.00″ this is used to set the start time in HH.MM format (hour, minute) for when the inside content becomes visible
enddate=”12.04.2030″ this is used to set the end date in DD.MM.YYYY format (day, month, year) until when the inside content is visible
endtime=”18.00″ this is used to set the end time in HH.MM format (hour, minute) until when the inside content is visible

The Scheduled Content shortcode can use all 4 start / end settings, but it can also work with only 2 (of same kind), such as only with startdate / enddate (will show content only during that specified date range from 00.00 start date to midnight end date) or starttime / endtime (will show content on a daily basis during specified start time and end time – please note that time is that of the server, so adjust accordingly).

The content wrapped between the [x3m-schedule] shortcodes will be displayed only between specified date/time range.