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
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]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 content wrapped between the [x3m-schedule] shortcodes will be displayed only between specified date/time range.