1

I am trying to understand how I can make a page show certain products if ALL of the categories match. So for instance, if the page has this code

[products limit="16" columns ="4" category="interior,lighting"]

I would want it to only show products that have both the interior and lighting category specified. Right now, this means that either of these categories will show.

Ruvee
  • 8,611
  • 4
  • 18
  • 44
Tree55Topz
  • 1,102
  • 4
  • 20
  • 51

1 Answers1

1

You could use cat_operator as part of your shortcode and AND relationship, like so:

[products limit="16" columns ="4" category="interior,lighting" cat_operator="AND"]

You could read more about it on the documentation page:

Woocommerce shortcodes

Ruvee
  • 8,611
  • 4
  • 18
  • 44