Forums

[resolved] Arranging posts by order of date within title (to use for events diary) (3 posts)

  1. alfandango
    Member
    Posted 2 years ago #

    A WordPress site I'm working on includes an events diary page that lists each upcoming event as a separate post.

    I need the posts to display in order of the event date which is in the title (eg: 1st August 2009).

    Obviously if I arrange the posts alphabetically it won't appear as desired (as 1st March would appear after 1st August for example), likewise if I arrange by date it will arrange by date the post was published (editing the post's published date/timestamp won't work either due to scheduling)

    Any ideas of the best way to achieve this?

  2. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    Try adding the events dates to a custom field and then use query_posts to set up The Loop to display the posts in date order.

    http://wordpress.org/support/topic/288867?replies=5

    might give you some ideas.

  3. alfandango
    Member
    Posted 2 years ago #

    That's wonderful - Custom field's worked like a charm.

    It threw me off for a while as the order seemed completly random... then I realised it was set to american date format rather than British :)

Topic Closed

This topic has been closed to new replies.

About this Topic