WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Reverse post order on tag page. (4 posts)

  1. cmf92
    Member
    Posted 3 years ago #

    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 :D

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try:

    <?php if (is_tag( 'september' )){
    query_posts($query_string . "&order=ASC");} ?>
  3. cmf92
    Member
    Posted 3 years ago #

    Thats perfect esmi. Thankyou so much!

  4. justinluey
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic