Split products loop by categories on the shop page
-
Hi,
I’m trying to edit the shop page in order to split the products by categories, displaying the category name as a title before each products loop. What I want is to follow this kind of scheme :
Category one <- (title)
– product 1
– product 2
– product 3Category two
– product 4
– product 5
etc.I wanted to override the archive-product.php template in order to loop through several queries that would use the cat argument, and display the category title before each query, but anyway the products are displayed following the action “woocommerce_shop_loop”, and I presume for maintenance issues of the plugin, I can’t edit what happens in this hook.
What is the best way to do this ?
Thank you in advance.
- The topic ‘Split products loop by categories on the shop page’ is closed to new replies.