After upgrading to 3.5, I discovered that navigation has disappeared outside of the main index page. Theme is TwentyEleven and I’ve verified that this still occurs after disabling all plugins.
<?php if ( $wp_query->have_posts() ) : ?>
<?php twentyeleven_content_nav( 'nav-above' ); ?>
<?php /* Start the Loop */ ?>
<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
<?php get_template_part( 'content-beers', get_post_format() ); ?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
<?php twentyeleven_content_nav( 'nav-below' ); ?>
Live site page
This code didn’t change since Twenty Eleven’s initial release. Navigation is only printed if your query has more than one page. Could that be it?
Since you are calling
$wp_query->have_posts()
rather thanhave_posts()
, this suggests you are modifying or overriding the query, which may be confusing WordPress (and it’s not WP’s fault). (See When should you use WP_Query vs query_posts() vs get_posts()?.)Winning code (had someone help & it looks like they more or less copy-pasted from the front page. Not sure why I had arranged it differently on the beers page to begin with…