pagination (e.g. next_post_links) doesn't work on page of posts
Here is my custom page;
<?php query_posts($query_string . '&post_type=post'); ?> <?php get_template_part( 'loop', 'index' ); ?>
…and in my loop.php I’ve just got the standard pagination code;
<?php if ( $wp_query->max_num_pages > 1 ) : ?> <?php next_posts_link( __( '← Older posts', 'twentyten' ) ); ?> <?php previous_posts_link( __( 'Newer posts →', 'twentyten' ) ); ?> <?php endif; ?>
Yet on this page, when I click on ‘Older posts’ it takes me to http://www.website.com/article-name/2/ but the pagination links are exactly the same (as if I was still on the 1st page). The blog posts have changed though.
For the standard blog page the pagination links work fine.
- The topic ‘pagination (e.g. next_post_links) doesn't work on page of posts’ is closed to new replies.