View Full Version : date archive

04-25-2006, 06:20 PM
A friend of mine has a website (http://www.thewintersounds.com/) for his band and has asked me to help him with it. It's in word press, which I find extremely difficult to work with. Anyway there's a 'shows' page and I was trying to figure out how to make the dates that have already past move to a 'past shows' page. Any help is appreciated.

04-26-2006, 07:06 PM
If you have a server-side language (php, perl, ???) available, that would be the way to go. Otherwise, you could use Javascript.

Store all of the show information in an array. Loop through the array checking for dates of today or later, and display that information under the "Current Shows" heading. Loop throught the array again checking for dates prior to today, and display that information under a "Previous Shows" heading.