yorokobi
Member
Posted 5 years ago #
In my Theme, I currently have the following:
<div class="navigation">
<div class="alignleft"><?php previous_post_link('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></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.
You could have found it here by yourself: http://codex.wordpress.org/Template_Tags/previous_post_link
<div class="navigation">
<div class="alignleft"><?php previous_post_link('« %link', '', true) ?></div>
<div class="alignright"><?php next_post_link('%link », '', true') ?></div>
</div>
yorokobi
Member
Posted 5 years ago #
Your assuming I didn't look. tsk tsk. I did, but I did not find that resource. Thanks for pointing it out.
@ alakhnor - Thank you very much
@ yorokobi - Close this topic as its resolved