カテゴリの記事一覧のページ送りができません
-
category.phpで、カテゴリの記事一覧を、
指定件数分、サムネイル付きで表示させているのですが、
指定の件数を超えたら、次のページにページ送りが出来ません。
下記がソースです。<!-- start new post --> <div id="newpost" class=" clearfix"> <?php query_posts($query_string.'&posts_per_page=5'); if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="topnews clearfix"> <dl> <dd class="thumbnail"> <?php if ( has_post_thumbnail() ): ?> <?php the_post_thumbnail( array(60,60), array('class' => 'alignleft') ); ?> <?php else: // サムネイルがない場合の処理 ?> <img src="<?php bloginfo('template_url') ?>/img/blank.gif" alt="noimage" class="alignleft" /> <?php endif; ?> </dd> <dt class=txt clearfix"><a href="<?php the_permaLink(); ?>"><?php the_title(); ?></a> [<?php the_time('Y.m.d'); ?>]<br /> <?php echo mb_substr(get_the_excerpt(), 0, 26).' ......'; ?></dt> </dl> </div> <!-- /topnews --> <?php endwhile; endif; wp_reset_query(); ?> </div> <!-- /newpost --> <!-- //end new post --> <div class="prevnext"> <p class="prev"><?php previous_post_link('%link','<<PREV',true); ?></p> <p class="next"><?php next_post_link('%link','NEXT>>',true); ?></p> </div>
次へを押すと、記事一覧の2ページ目ではなく、そのカテゴリの記事そのものが表示されます。どこを修正したら、記事一覧だけのページ送りが出来ますでしょうか?
ご指導よろしくお願いいたします。
8件の返信を表示中 - 1 - 8件目 (全8件中)
8件の返信を表示中 - 1 - 8件目 (全8件中)
- トピック「カテゴリの記事一覧のページ送りができません」には新たに返信することはできません。