投稿の記事がデフォルトでは新着順なのですが、使い方によっては古い記事から表示させたい時があると思います。 そんな時、古い記事から表示させる方法です♪ 以下をループコードの直前に記述する <?php if(is_archive()) : query_posts($query_string.'&order=ASC'); endif ?> 例) <?php if(is_archive()) : query_posts($query_string.'&order=ASC'); endif ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php the_title(); ?> <?php endwhile; ?> これで古い記事から表示されます!
![投稿の順番を古い記事から表示させる](https://cdn-ak-scissors.b.st-hatena.com/image/square/8c5a7be2ead0e90be22e0d455f25e68ba1b778ac/height=288;version=1;width=512/https%3A%2F%2Fwww.aimin10.com%2Faimin10.gif)