grauwald
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce product_category AND operator returns no resultsYep, I used that short code exactly. Even made sure the two categories were top level for whatever that’s worth, and just now double checked my slugs. Still no luck.
My guess is there’s simply something different about your install Mike that differs from Beth and mine’s.
It would be a very useful feature for the site I’m building currently but for now I’ll just have to work around by creating a new sub category like hotshop-colors-red. Now to go and update a thousand or so records…
Forum: Plugins
In reply to: [WooCommerce] Woocommerce product_category AND operator returns no resultsOk, cool, thanks so much for the help Mike. Looks like I’ll have to figure out another route. If I figure out what it is about my particular install that makes this fail I’ll let you know.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce product_category AND operator returns no resultsok, just disabled all my other plugins and still no luck.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce product_category AND operator returns no resultsWeird, wondering if maybe another plugin I have installed could be conflicting.
You were able to use this shortcode to get it to work?:
[product_category category="hotshop-colors,red" order="name" operator="AND"]
Forum: Plugins
In reply to: [WooCommerce] Woocommerce product_category AND operator returns no resultsHi Mike,
Yes, I have several products in *both*.
Thanks again.
Cheers,
-JoeForum: Plugins
In reply to: [WooCommerce] Woocommerce product_category AND operator returns no resultsHi Mike,
Thanks for responding and sorry for the late reply.
The products are added to both the ‘hotshop-colors’ and ‘red’ categories. ‘red’ is a top level category, however ‘hotshop-colors’ is a subcategory of ‘hotshop’.
It seems to me that hierarchy shouldn’t matter though as the request to WP_Query should just bring back all products that have been given the categories of both ‘red’ and ‘hotshop-color’? Perhaps there’s something I don’t understand about the AND operator in WordPress.
Forum: Plugins
In reply to: [WooCommerce Shortcodes] Operator AND on product_categoryI’m also having the same issue. Even looking at the WooCommerce source code does not provide any answers as it claims to allow the
AND
operator in the code comments.