WordPress.org

Ready to get started?Download WordPress

Forums

Changing order of posts (4 posts)

  1. artcop
    Member
    Posted 8 years ago #

    Trying to utilize WP as a simple web-based tool for my client to enter calendar events:

    http://www.aromaceuticals.com/events

    I need these entries to appear in the reverse order that WP defaults to, and there doesn't seem to be any option to change that in the control panel (which I find pretty strange). I'm obviously using a truncated version of WP in my own template, but I wonder if there is some code I could add to reverse the order of entries displayed?

    Thanks in advance for any help!

  2. moshu
    Member
    Posted 8 years ago #

    One solution (if it affects only one category!)
    http://wordpress.org/support/topic/51130?replies=3#post-280617

    Otherwise (if it's about all posts in all categories) put this before your Loop:
    <?php query_posts('order=ASC'); ?>

    see more: Template_Tags/query_posts

  3. MichaelH
    Member
    Posted 8 years ago #

  4. artcop
    Member
    Posted 8 years ago #

    Beautiful- thanks, all!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.