WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Reverse post order on tag page.

[Resolved] Reverse post order on tag page.

  • Hey I know how to reverse the post order on categories.

    <?php if (is_category(array(gigs))){
    query_posts($query_string . "&order=ASC");} ?>

    But now I want to reverse the post order of the posts that appear on a certain tag page.

    For example this set of posts are reversed and im happy:
    http://www.thewellleeds.com/category/gigs/

    This set of posts are not reversed:
    http://www.thewellleeds.com/tag/september/

    Ive tried variations of the above code on archive.php but cant do it! HELP PLEASE 😀

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    Try:

    <?php if (is_tag( 'september' )){
    query_posts($query_string . "&order=ASC");} ?>

    Thats perfect esmi. Thankyou so much!

    I want to do the same thing, but have the posts sorted by title. Is that possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Reverse post order on tag page.’ is closed to new replies.