[closed] Show only direct descendants in product categories (2 posts)

  1. Eduardo Turiño
    Posted 2 years ago #

    Hi there !

    Im using WP 3.8.1 and WC 2.1.5

    I have this structure in my online shop:

    Chairs (category)
     - Chair 1 (product)
     - Chair 2 (product)
     - Chair 3 (product)
     - For the Office (category)
       -- Office Chair 1
       -- Office Chair 2
       -- Office Chair 3
     - For Schools (category)
       -- School Chair 1
       -- School Chair 2

    Having the option in the category "Show Subcategories and Products", the url mychairstore.com/product-category/chairs lists all products and categories but I just want it to display only direct children of the Chairs category (no "grandchildren").

    So, is there a way to take Office Chair 1, Office Chair 2, ... and School Chair 1, 2... off the list ?



  2. baskie
    Posted 2 years ago #

    I've got the exact same problem here.

    Haven't been able to find or create a solution for this.

    Anyone got a solution? It shouldn't be that difficult.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic