So here’s a question, and excuse me if I’m wrong… but does the in_same_Cat parameter work on next_post_link and prev_post_link functions.
I only have three categories. NO. 1 is the General cat which is not a parent to any other but in which all posts are posted under. No.2 and No. 4 are Journal and School posts respectively under which all posts are categoried. Neither 2 or 4 is a child to 1.
On Single post view I want to show links only in No. 2 or No.4 but I only receive links from the General Category. I’m using the following unsuccessfully:
<?php next_post(‘% » ‘,”,’yes’,’yes’); ?>
where the 4th parameter is to display in the same Cat. I’ve also tried excluding irrelevant categores as at:
<?php next_post(‘% » ‘,”,’yes’,’yes’,”,’1′); ?> and still no results.
Where am I going wrong?
- The topic ‘Displaying posts in_same_Cat using Next/Prev Post functions’ is closed to new replies.