Is there a smart way to use Next/Previous post button?
-
I have a Next/Previous button on my blog, which works great when viewing from the homepage and going backwards.
<div><h4><span><?php next_post('% ‹‹‹', 'Previous', 'no', 'no'); ?></span> <span> <div class="right"><?php previous_post('››› %', 'Next', 'no', 'no'); ?></span> </h4></div>
However, every post is split into categories and I have a menu for every category…this is when i run into problems. I use the above code in the single.php, but when you click on a post within its category and click next/previous…it uses the next or previous post using time…not category.
Is it possible to use time on my index/single and category within cat/single?
Does that makes sense?
- The topic ‘Is there a smart way to use Next/Previous post button?’ is closed to new replies.