Display subcategory of a woocommerce product category and display the product list of that subcategory.

4 / 100

Display subcategory of a woocommerce product category and display the product list of that subcategory.
My client requested:
– List the product categories of the parent category
– Display product list of that subcategory.
Below is the code I used.