WordPress.org

Forums

[resolved] Display post titles from single category --- in Reverse Order (4 posts)

  1. kahitano
    Member
    Posted 7 years ago #

    I have successfully tried to display a number of post titles from a single category, and it works great.

    But I want them to show in the REVERSE order. I am planning to use it as a make-shift event calendar, posting in advance, so the most recent (i.e. the older post) should show first, and the later events (the latter posts)

    is there a way to do this?

  2. Ivovic
    Member
    Posted 7 years ago #

    absolutely there is. check out the codex page on query_posts()

    There's a section there about the "orderby" parameter. If you set that to date, the default is to show the newest first.

    However, if you then set the "order" parameter as well, you an pick if you want this to be ASCending or DESCending.

  3. kahitano
    Member
    Posted 7 years ago #

    thanks, I figured it out a while ago too..

    but is there a way to show posts with a future timestamp too?

  4. zota
    Member
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic