Support » Fixing WordPress » Having problem keeping previous/next links in the same category for single posts

  • When viewing a single post, I’d like the previous and next links to only display the previous and next entries in that same category (rather than from all the categories). I assume I’ll have to edit single.php in my template? I’ve tried things like <?php next_post_link($format=’%link &raquo’, $link=’%title’, $in_same_cat = true); ? but that just creates no link at all.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Having problem keeping previous/next links in the same category for single posts’ is closed to new replies.