• Hey all,

    for a band website, I’m creating a post type to post their gigs, both upcoming and past. (preferentially the past ones archived by year) The post type is called “gigs” so through “www.mywebsite.com/gigs” they see a list of all the gigs. For this post type I’ve created custom write panels (but that’s not relevant now I think)

    The gigs are divided through h2’s and it should look like this:

    UPCOMING GIGS:
    Gig 1
    Gig 2

    2011:
    Gig 3
    Gig 4

    2010:
    Gig 5
    Gig 6

    My question (it’s my first WordPress website so it may be an obvious thing:>)

    The easier part – is there an easy way to read out the year of the post, and automatically put it under the relevant year’s header.

    Also – it possible to get today’s date, and based on todays date, automatically put it in the “past gigs”?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Archive post type by date’ is closed to new replies.