Hello and welcome to our community! Is this your first visit?
Register
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
    Location
    Philadelphia, PA
    Posts
    7
    Thanks
    0
    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
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    624
    Thanks
    1
    Thanked 20 Times in 20 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.


  •  

    Posting Permissions

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