WordPress.org

Ready to get started?Download WordPress

Forums

Page with all posts in chronological order (4 posts)

  1. goanga
    Member
    Posted 4 years ago #

    Hello,

    I have a travel blog, kept during a trip through South America.
    Now that I'm back though, I'd like to have a page with all the posts in chronological order (from old to new), so I can give out that link to people who didn't follow the trip.
    However, after searching high and low, I can' t seem to find a way to do it, no plugin, no nothing.

    Can anybody help?

  2. kz
    Member
    Posted 4 years ago #

    index.php

    query_posts($query_string . '&orderby=date&order=ASC');
    
    while(have_posts()) :
     /* do stuff */
    endwhile;
    
    wp_reset_query();
  3. goanga
    Member
    Posted 4 years ago #

    That works, except I want to have a different page and leave the main page as it is.

  4. Try inserting this into your page template:

    http://wordpress.pastebin.com/d39bde1cf

    I think I lifted it from here a long time ago.

    Edit: Whoops, saw something silly and updated the link.

Topic Closed

This topic has been closed to new replies.

About this Topic