WordPress previous_post_link exclude posts with multiple categories
What you need to do is change the excluded_terms argument of the previous_post_link and next_post_link functions which you called $catagory. Simply remove all the category ids of your current post from that excluded_terms array. Make sure to define an array of categories which you don’t want to be displayed like you did it in your … Read more