- January 19, 2022 at 3:35 am #36306
We are using the product filter shortcode – “[wd_asp id=1]” for https://shootersdelightstaging.gcdev.com.au/shop/ left side filters. For the filter “Brand” we have a custom function in functions.php and we use product tags for the brand. When we select the “A-ZOOM” brand, it shows 50 products but if you have it in the backend we only have 38 products with the assigned tag “A-ZOOM” (https://shootersdelightstaging.gcdev.com.au/wp-admin/term.php?taxonomy=product_tag&tag_ID=593&post_type=product&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dproduct_tag%26post_type%3Dproduct%26s%3DA-ZOOM).
The filter result also shows some products which have 0 tags assigned. How do we fix this so it only shows 38 products?January 19, 2022 at 2:39 pm #36313
Thank you for the details!
I see that filter is added programmatically. I checked the custom code, and the “allow_empty” argument was set to “true” – which allowed results to show up where the tag is not defined. I corrected that in the custom codes on both filters: https://i.imgur.com/ixCrA7B.png
It should be okay now.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.