Posts Tagged ‘Programming’

ee_logo2.gif

Problem :

You want to display a particular post everyday but only during a time of the day, very useful when you’ve got a schedule you want to display.

Solution :

Post your entry but make the entry date a fixed one. For example, the post has entry date 2007-01-01 but with the time you want the post to display -> 2007-01-05 01:40 PM

Then in your exp:weblog:entries tag in your template just add the following:

stop_before="2007-01-01 {current_time format="%g:%i %A"}" show_future_entries="yes"