In our site we used to display categories and products in different separate sections when display type was set to 'both'
using woocommerce_product_subcategories()
function.
I have recently updated woocommerce to the latest v3.4.3
and found out that the function woocommerce_product_subcategories()
has been deprecated. Now they have introduced different functions to display categories, like woocommerce_output_product_categories()
, woocommerce_maybe_show_product_subcategories()
.
But the problem I'm having is that, I could not stop showing categories in product loop. It keeps showing both categories and products in the same loop.
Can anyone show me a way, how I can display categories and products in a separate section?
EDIT
To clarify my question, in my category settings, display type is set to both.
When I'm browsing category archive page, both category and products are showing in the loop.
What I want, is to separate categories from the loop and show it in a different section. In the loop, I want to display only products.