• 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('% &lsaquo;&lsaquo;&lsaquo;',  'Previous', 'no', 'no'); ?></span>
     <span> <div class="right"><?php previous_post('&rsaquo;&rsaquo;&rsaquo;  %', '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?

Viewing 16 replies (of 16 total)
Viewing 16 replies (of 16 total)
  • The topic ‘Is there a smart way to use Next/Previous post button?’ is closed to new replies.