Display Woocommerce Categories Anywhere

23 Aug

While there are several plugins to display random order, best sellers and on sale items, there are very few if any that show categories of choice.

I thought I was going to have to create a new template until I stumbled upon this shortcode:

Select Code
[product_category category="slug" per_page="12" columns="4" orderby="price" order="asc"]

A few tips:

  • Replace “slug” with your category of choice
  • You can designate how many products you want on the page via the “per_page” option
  • You can designate order by price, date or name

Tags: , ,

No comments yet.

Leave a Reply

76 − = 70