I am trying to display woocommerce products on one of my pages, but I want to filter the output by categories. this is my shortcode:[products limit="3" columns="3" category="armor-lux, truien, jas" cat_operator="AND"]
.
I expected it to display all the products that have the categories "armor-lux", "truien" and "jas" but it displays nothing. But when i remove one of the categories it works. Is there a limit?
I understand your requirement, This is very easy, just change the shortcode parameter
2 Solution over here
First Solution:
From your shortcode remove parameter cat_operator="AND" and code is working perfectly.
Your new Shortcode is [products limit="3" columns="3" category="armor-lux, truien, jas" cat_operator="AND"]
Second Solution
Instead of your shortcode, Add this shortcode I have edited your shortcode please test
[product_category limit="4" columns="3" category="armor-lux, truien, jas"]
No need for cat_operator to the shortcode.
Thanks