• Can anyone explain to me why the following code wouldn’t exclude posts from category 16?

    <?php while ( have_posts() ) : the_post(); ?>
    
    <nav id="nav-single">
    <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
    <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'twentyeleven' ) ); ?></span>
    <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?></span>
    </nav><!-- #nav-single -->
    
    <?php get_template_part( 'content', 'single' ); ?>
    
    <?php endwhile; // end of the loop. ?>
  • The topic ‘next_post_link exclude not working? Need help…’ is closed to new replies.