next and previous post in same category
-
Could someone help me figure out what the documentation is saying? I’m afraid I’m not really an expert in formatting code. I want the single page navigation to display the name of the next and previous post only in the category within which it exists. I tried:
<div class="alignleft"><?php previous_post_link('« %link', TRUE) ?></div> <div class="alignright"><?php next_post_link('%link »', TRUE) ?></div>
and
<div class="alignleft"><?php previous_post_link('« %link', in_same_cat=TRUE) ?></div> <div class="alignright"><?php next_post_link('%link »', in_same_cat=TRUE) ?></div>
and
<div class="alignleft"><?php previous_post_link('« %link', 'in_same_cat=TRUE') ?></div> <div class="alignright"><?php next_post_link('%link »', 'in_same_cat=TRUE') ?></div>
…none of which work. What’s the proper format, please?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘next and previous post in same category’ is closed to new replies.