• I would like to order the posts in a category in a way other than reverse chronological order.

    I have an Events category that lists various events on different days. I post the events as they come in, and it’s not always in chronological order according to the event date. I would like to add the event’s date in a custom field and then apply some kind of parameter to the loop so that it displays that category’s posts in the order of the custom field. Any help? I am using WordPress 2.02 and my site is at https://stc-suncoast.org. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sorry I don’t know the answer, I would also like to know how to sort posts using a Custom Field. I have heard this is possible.

    Some options I thought of for you. You CAN easily get posts to sort alphabetically by title (the Codex explains how, it’s simple). So you could make the title of your posts start with the numeric date in a way that sorts in the order you want, like,
    2006-04-20 Event Post
    2006-04-22 Event Post

    Another idea is to use one of several Calendar/Events plugins (in addition or instead of making each event a WordPress post). For example, the plugin Countdown, where you list the events in a text-file and the plugin displays it on your blog like this
    Event Name (20 days remaining)
    Event Name (Tomorrow!)
    Event Name (3 hours from now)

    Good luck & please post your solution!

    Thread Starter TomJohnson

    (@tomjohnson)

    Can you point me to the page on Codex that explains how to sort posts alphabetically?

    you wrote, “You CAN easily get posts to sort alphabetically by title (the Codex explains how, it’s simple).”

    Thread Starter TomJohnson

    (@tomjohnson)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘custom order of posts in a category?’ is closed to new replies.