Title: Show only Same Current PRIMARY Category
Last modified: February 8, 2022

---

# Show only Same Current PRIMARY Category

 *  [juniojeff](https://wordpress.org/support/users/juniojeff/)
 * (@juniojeff)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/show-only-same-current-primary-category/)
 * Hello,
 * Thanks for your plugin!
 * I’m wondering if there is a way to only match same current primary category as
   the current post.
 * Example: If I have a post on bull dogs, I might categorize it under Dogs AND 
   Bull Dogs, with Bull Dogs being a child category that is selected as the primary
   category. When displaying related posts, I only want it to show posts under the
   child category of bull dogs and not posts about all dogs. I also want this to
   be done automatically (not manually for every child category). Is there a way
   to do this?
 * Thanks,
    Jeff

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/show-only-same-current-primary-category/#post-15351992)
 * I think the Primary category feature is specific for SEO plugins. Which one are
   you using?
 * It’s a feature that has been asked before, but I’m still not sure how to implement
   it or to find the primary category dynamically.
 * But, one on my list to figure out and implement as others have asked this as 
   well in the past.

Viewing 1 replies (of 1 total)

The topic ‘Show only Same Current PRIMARY Category’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/show-only-same-current-primary-category/#post-15351992)
 * Status: not resolved