是否正在编写自定义查询?如果是,您是否在查询中使用分页功能?
它看起来像这样:
<?php
query_posts( array(
\'posts_per_page\' => 5,
\'cat\' => \'10\',
\'paged\' => ( get_query_var( \'paged\' ) ? get_query_var( \'paged\' ) : 1 ),
) );
while( $new_query->have_posts() ) : $new_query->the_post();
?>
// loop stuff here
<?php endwhile; ?>
<?php next_posts_link( \'« Older Entries\', $new_query->max_num_pages ) ?>
<?php previous_posts_link( \'Newer Entries »\' ) ?>