WordPress.org

Support

Support » How-To and Troubleshooting » How to display posts chronologically in 2010 based theme

How to display posts chronologically in 2010 based theme

  • I”m working on modifying a theme that is based on 2010.

    I want to make the posts on this blog display earliest to oldest, but I don’t see how to do this in the theme:

    I understand I need to add . "&order=ASC" to a wp_get_posts query, but I can’t find any.

    Just index.php:
    get_template_part( 'loop', 'index' );

    and loop.php it seems to have the posts already:
    while ( have_posts() ) : the_post();

    Where should I look?

Viewing 1 replies (of 1 total)
  • You need to re-issue the query with the new order. Try placing these lines just ahead of the ‘get_template_part()’ line:

    global $query_string;
    query_posts( $query_string . '&order=ASC' );
Viewing 1 replies (of 1 total)
  • The topic ‘How to display posts chronologically in 2010 based theme’ is closed to new replies.
Skip to toolbar