Schedule Text Within a WordPress Post to Show Based on Date

Schedule Text Within a WordPress Post to Show Based on Date

Sometimes a WordPress post may have information that needs to be displayed at a later date, yet the post is ready to be published with other relevant information. You might be planning an ongoing event with some dates available and some that will come due in the future. Learn to control this easily with WordPress.

A simple WordPress Scheduled Text in Post Plugin entitled “Before and After” by Jacob Fresco handles this job in a simple, functional way. It’s not editor or panel driven, so you need to be comfortable placing tags in the WordPress editor.

The Tags

To Get a Better Idea

<ON 2011-10-02>This should only when the current date is Oct 2</ON>

<BEFORE 2011-10-01 17:00>Shows until set date of Oct 1</BEFORE>

<AFTER 2011-10-02 17:00>Shows After 5pm on Oct 2</AFTER>

There are more examples of combinations that work and some that won’t on the plugin page. The script logic is pretty simple. To get a good feel for how the date ranges work, it’s best to do a test post with pinging turned off if you are live publishing, although, tests work in the draft environment as well, although, it takes a few tries to understand how the clock works.

The front end and source elements end up very clean for those items not displayed. This might work well for someone who doesn’t have a solution using individual posts to organize dates.

1 Response

Great write up, very useful for just about any business. One less thing to worry about on the launch date of a product or when a promotional event occurs. Owners need to be focused on managing daily tasks and allowing them to prepare ahead of time with this easy scheduling will help!