Support » Themes and Templates » Restrict Navigation Links to current category

  • Resolved Ted Thompson

    (@yorokobi)


    In my Theme, I currently have the following:

    <div class="navigation">
    	<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    	<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
    </div>

    What I want to do is add conditional statements that will get and display links ONLY to the “back” or “next” post in the SAME category.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restrict Navigation Links to current category’ is closed to new replies.