It appears as tho the search functionality for WooCommerce products does not check “product_tag” taxonomy terms, nor SKU field? I added the SKUs as product tags to their respective products, but it still returns nothing when I search for the SKU…. How do I make the search functionality check product_tag terms? I have tried many many many things from adding tax_query to pre_get_post filter, to a whole new WP_Query loop, it just fails to search product_tags for some reason….so what is the point in a Product Tag???
Leave a Reply
You must be logged in to post a comment.
I’ve tried the code from woo and others to search SKU with no results. However, the plugin search-everything, download from repository, does the job.
It is too simple just paste the following code in function.php and then you can see the changes in search results.