Support » Fixing WordPress » Mod archives to display oldest article

  • dane.modani

    (@danemodani)


    Is it possible to mod the archives page to automatically display the oldest posting from the selected category?

Viewing 2 replies - 1 through 2 (of 2 total)
  • MichaelH

    (@michaelh)

    To resort the order of posts, using the WordPress Default theme for example, in the wp-content/themes/default/archive.php file, just before the line:
    <?php if (have_posts()) : ?>

    put this:

    <?php query_posts($query_string . '&orderby=date&order=ASC'); ?>

    The query_posts() article explains the arguments in detail.

    dane.modani

    (@danemodani)

    Thanks a lot 😀 I will try.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mod archives to display oldest article’ is closed to new replies.