title: Display the posts from the same category when user clicks on next/previous post in single.php page
body: <p>I am using this code but once i click on the next post/previous post link i am redirected to the next post/ previous post of the different category</p>
  
  <pre><code> previous_post_link('%link', 'Prev post in category', $in_same_term = true);
   next_post_link('%link', 'Next post in category', $in_same_term = true);
  </code></pre>
  
  <p>I am trying to fix my issue using this article <a href="http://codex.wordpress.org/Function_Reference/next_post_link" rel="nofollow">http://codex.wordpress.org/Function_Reference/next_post_link</a></p>
  
  <p>Thanks</p>