• Resolved antonk9000

    (@antonk9000)


    How can I change the category layout so it shows the subcategories, then the products in each subcategory?

    The WC category settings allow me to show either products, or subcategories, or both – but the “both” option dumps the subcategories first, and then, after all of them, dumps all products.

    Is there a way to re-arrange it so it shows:

    [subcategory title]
    [product] [product] [product]

    [another subcategory]
    [product] [product] [product]

    [subcategory #3]
    [product] [product] [product]

    ?

Viewing 1 replies (of 1 total)
  • jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @antonk9000 I looked into this, and there isn’t an easy way to do what you want automatically without custom development.

    The way the product archive page works when displaying products is it checks the setting to see if sub categories should be displayed. If they should be displayed, they are queried and output first via a filter that calls woocommerce_maybe_show_product_subcategories.

Viewing 1 replies (of 1 total)
  • The topic ‘Category display: subcategories & their products – possible?’ is closed to new replies.