Is there any way to display a link (on the individual pages catablog-items.php) to the next and to the previous item in the same category?
It should look something like this:
<< Previous item 2/14 Next item >>
And the problem is that <?php next_post_link(); ?> works but the “Next” “Previous” links go through all categories.
I want that the “Next” link would not appear when the catalog end is reached.
Cats page 2
<< Cats page 1 Cats page 3 >>
Dogs page 2
<< Dogs page 1 Cats page 1 >>
P.S. – I have exactly the same problem as this guy had in this topic but in the end there was no helpful answer.
- The topic ‘Link to the next item in the same category?’ is closed to new replies.