WordPress.org

Ready to get started?Download WordPress

Forums

Reversing the Order of your posts (4 posts)

  1. mikeswebwork
    Member
    Posted 7 years ago #

    Hi,

    Due to the fact that most of my friends are clueless when it comes to blogging, i want have my travelblog show the first post first and not the most recent.

    I only want it in my archives section, so if someone clicks on say Spain...they read from day one and not the last post backwards.

    Any help links would be apreciated.

  2. syncbox
    Member
    Posted 7 years ago #

    I think you'd just build a query

    <?php
    if (is_archive()) {
    query_posts("order=ASC");
    }
    ?>

    I'm no php/wp expert, but I think if you put that just above the loop in your archive.php file, it should work

  3. mikeswebwork
    Member
    Posted 7 years ago #

    looks like its working!!!! thanks

  4. mikeswebwork
    Member
    Posted 7 years ago #

    hmm.maybe not

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.