pagination not working
-
I am having trouble with getting my pagination to work correctly. I have five different pages on my site that list posts. Each page lists a different category of posts. The posts are quite long and therefore I only list one per page. It is a simple process that I have used many times before but for some reason it is not working now. I will show you the code and the site is here.
<?php $catname = 'thisweekfromcaliforniahistory'; $wp_query = new WP_Query(); $wp_query->query('category_name='.$catname.'&showposts=1'.'&paged='.$paged); while ( have_posts() ) : the_post(); get_template_part( 'content', 'page' ); comments_template( '', true ); endwhile; twentytwelve_content_nav( 'nav-below' ); ?>
Seems like it is pretty simple. I have seen plenty of support posts doing the same thing. The problem is that each time I click older posts I get the same post over and over.
Any help is appreciated. Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘pagination not working’ is closed to new replies.