Woocommerce 产品搜索不检查“product_tag"? [英] Woocommerce product search not checking "product_tag"?

查看:115
本文介绍了Woocommerce 产品搜索不检查“product_tag"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看起来 WooCommerce 产品的搜索功能不会检查product_tag"分类术语,也不会检查 SKU 字段?我将 SKU 作为产品标签添加到它们各自的产品中,但是当我搜索 SKU 时它仍然没有返回任何内容......我如何使搜索功能检查 product_tag 术语?我已经尝试了很多很多东西,从添加 tax_query 到 pre_get_post 过滤器,到一个全新的 WP_Query 循环,它只是由于某种原因无法搜索 product_tags ......那么产品标签有什么意义???

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???

推荐答案

我尝试了 woo 和其他人的代码来搜索 SKU,但没有结果.但是,插件搜索所有内容,从存储库下载,都可以完成这项工作.

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.

这篇关于Woocommerce 产品搜索不检查“product_tag"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆