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.

Explore dazzbox jewelry with the collection of diamond rings, gemstone rings , cubic zirconia rings and engagement & wedding rings. The fashion & fine cheap jewelry online. Refresh you & give you a new look by the perfect ring with dazzbox.com. Free Shipping orders over $99!

Welcome to our online store, your number one sports store, which is an online retailer of cheap jerseys and other sports merchandise and provides the ultimate shopping experience to sports fans.

A simple show scheduled WordPress 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.

Some Ideas for Usage of 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

<code>

<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>

</code>

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.

 

Leave a Reply

  • (will not be published)

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>