twentyeleven_content_nav hook no longer outputs navigation link after 3.5 upgrade

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

Related posts

Leave a Reply

2 comments

  1. 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…

    <?php query_posts('post_type=beer&paged='.get_query_var('paged') ); ?>
    
        <?php if ( have_posts() ) : ?>
    
            <?php /* Start the Loop */ ?>
    
                <?php while ( have_posts() ) : the_post(); ?>
    
                <?php if ( 'beer' == get_post_type() ) {
    
                    get_template_part( 'content-beers', get_post_format() ); 
    
                } else;
    
            ?>
    
            <?php endwhile; ?>
    
            <?php twentyeleven_content_nav( 'nav-below' ); ?>
    
        <?php else : ?>