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.

Download Before and After Plugin (other plugins share the same name)

Some Usage Ideas for This Timed Content Display Plugin

  • Concert Dates With Future Dates Known Yet Not Released
  • To “Roll Off” Past Dates and Keep a Schedule Clean
  • Information Pertinant to the Date of an Event
  • Discount Code Made Available Only On a Specific Date(s)

The Tags

<BEFORE YYYY-MM-DD HH:MM>Text</BEFORE>

<AFTER YYYY-MM-DD HH:MM>Text</AFTER>

<ON YYYY-MM-DD>Text</ON>

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.

Other Options (if you’d rather expire a post itself)

Content Scheduler Plugin Expires Posts Automatically

Other Plugin, Expires then Deletes Post from the WPMU Post: Schedule Post to Go Back to Draft

(this plugin on the line above is listed compatible up to 2.9.2)

Or if you’re looking for something really premium…

The WPMU DEV Scheduled Content Plugin is well worth a look!

In addition to all the features of the above you also get a fancy WYSIWYG editor option built into TinyMCE.

Select the text you want to schedule and click the schedule button. You can determine how long you want it to be released for, the times it should be released and the dates.

And that’s it. Here it is in action:

Photo: alexkerhead

Featured Plugin - WordPress Infinite SEO Plugin

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - WordPress Newsletter Plugin

Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more

Featured Plugin - WordPress Appointments Plugin

Take, set and manage appointments and client bookings without having to leave WordPress. Appointments+ makes it easy.
Find out more

Featured Plugin - WordPress Google Maps Plugin

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Featured Plugin - WordPress Q&A Site Plugin

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - WordPress Facebook Plugin

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - WordPress Wiki Plugin

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - WordPress Membership Site Plugin

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - WordPress Pop-Up Chat Plugin

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Comments (1)

  1. 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!

Participate