No content found on page 2 of pagination with 1 post per page

I don’t know what largo_content_nav() does but you clobber the main query here: query_posts(‘posts_per_page=1’); And then several lines later attempt to paginate (or so the function name and argument suggest): largo_content_nav( ‘nav-below’ ); If largo_content_nav uses the global variable $wp_query which I kind think it must since you don’t pass it a WP_Query object, then … Read more

WordPress Numeric Pagination with Query String [duplicate]

It looks like the paged variable isn’t being added to the query arguments. This should work: $paged = ( get_query_var(‘paged’) ) ? get_query_var( ‘paged’ ) : 1; $args = array( ‘post_type’ => ‘animals’, ‘posts_per_page’ => 4, ‘category’ => $queryString, ‘paged’ => $paged ); $wp_query = new WP_Query( $args ); Also, as a note, $wp_query is … Read more

Custom post type blog pagination conflict

Thank you to Milo for pointing me to the pre_get_posts hook. That was exactly what I needed. Here is my updated code: Archive page code <?php get_header(); get_template_part( ‘include/content’, ‘head’ ); ?> <div class=”postcontent nobottommargin<?php if( semi_option( ‘blog_sidebar’ ) == ‘left’ ) { echo ‘ col_last’; } ?> clearfix”> <?php if ( have_posts() ) : … Read more