Title: Parent category only
Last modified: April 2, 2018

---

# Parent category only

 *  Resolved [ndrewebdev](https://wordpress.org/support/users/ndrewebdev/)
 * (@ndrewebdev)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/parent-category-only/)
 * Hi
 * I need to show related products by parent category only.
    Example: i have fashion
   clothes by years 2014,2015,2016 etc, these are the parent categories. The subcategories
   are: jeans, vests, hats… I dont want to show the 2016 jeans in a 2017 jeans related
   products list, because the jeans subcategory is same.
 * How can i do this?
 * Thanks
 * Andrew

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Vagelis](https://wordpress.org/support/users/eboxnet/)
 * (@eboxnet)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/parent-category-only/#post-10137379)
 * Hello there, you can exclude the categories you don’t need or maybe you could
   use tags.

Viewing 1 replies (of 1 total)

The topic ‘Parent category only’ is closed to new replies.

 * ![](https://ps.w.org/woo-related-products-refresh-on-reload/assets/icon-256x256.
   png?rev=1531812)
 * [Related Products for WooCommerce](https://wordpress.org/plugins/woo-related-products-refresh-on-reload/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Vagelis](https://wordpress.org/support/users/eboxnet/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/parent-category-only/#post-10137379)
 * Status: resolved