Filter by Tag in Products Carousel Widget
-
This is a great collection – thank you!
Found one possible problem in includes/widgets/class-tm-products-carousel-widget.php wich leads to no visible products if filtered by a certain product tag.
Line 368 in current trunk:
The product tag ID should be used instead of the product tag itself to use within the query.
So:
$query_args[‘product_tag’] = $instance[‘tm_filter_by_tag’];
Should be:
$query_args[‘product_tag_id’] = $instance[‘tm_filter_by_tag’];
As it works then for me. But I’m not sure if the problem is caused by the code or by my wordpress/woocommerce setup.
Thank you again 🙂
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Filter by Tag in Products Carousel Widget’ is closed to new replies.