I am trying to figure out the code to exclude a category from my next and previous post links.
My code for the next and previous is as follows:
<div class="next_prev_cont"> <div class="left"> <?php previous_post_link('%link', '<i>Previous post</i><br />%title'); ?> </div> <div class="right"> <?php next_post_link('%link', '<i>Next post</i><br />%title'); ?> </div> <div class="clear"></div> </div><!--//next_prev_cont-->
I believe I need to use the following: $excluded_terms = '4835'
4835 being the cat ID, but I'm not sure how to implement it? Any help is greatly appreciated!