Is it possible to force previous/next navigation to browse through the posts (back and forth) that are only inside the same category (and to exclude other categories)?
The functions accept an $in_same_cat argument, the default value of which is false. Just set that to true.
previous_post_link($format, $link, true);
next_post_link($format, $link, true);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago
9 months ago