I've seen this asked a few times, but couldn't find an open discussion.
I'd like the Previous and Next links to stay within the same category as the current post. The codex says its possible with a 'True' parameter but I can't get it to work.
The codex (http://codex.wordpress.org/Template_Tags/previous_post_link) doesn't mention why the default theme code includes 'twentyeleven' as a parameter.
My code in single.php is:
<span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">←</span> Previous', TRUE,'twentyeleven' ) ); ?></span> <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">→</span>', TRUE, 'twentyeleven' ) ); ?></span>
The links still ignore the category and just go by date.
Any help much appreciated