I’m using plugin Woocommerce to do shop online.
I have many categories for example shoes
, clothes
and so on. How can I display the products of specific category?
I see such product loops of on the sample page, but I only want show the products of a specific category in my index.php
.
You need to create a new loop for that. Here’s the code I use for displaying products from a specific category on the home page:
Try this
There is another way:
You can assign the “Shop” page as default home page. Now all the products will displayed to the home page. I mean
index.php
.