On my site, I have a front page template with a custom loop query:
<?php $args = array( 'post__not_in' => get_option( 'sticky_posts' ), 'posts_per_page' => 10, 'cat' => '-7, -8, -112','paged' =>get_query_var('paged') ); ?> <?php $loop = new WP_Query( $args ); ?> <?php if ( $loop->have_posts() ) : ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
Then after the loop,
<?php get_template_part( 'loop-nav' ); ?>
(Which is used throughout the rest of the site.)
However, the pagination never shows, and setting the url to /page/2 doesn't change which posts get displayed. I've also tried just replacing the loop-nav template with stock WP pagination code, but that doesn't work either.
Can anyone shed some light on this?