Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: date archive

  1. #1
    New to the CF scene
    Join Date
    Feb 2006
    Philadelphia, PA
    Thanked 0 Times in 0 Posts

    Question date archive

    A friend of mine has a website 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.

  2. #2
    Regular Coder
    Join Date
    Jun 2002
    Flint, Michigan, USA
    Thanked 23 Times in 23 Posts
    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.
    Having said that, I've probably told you more than I know.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts