Php 从特定类别搜索Woocommerce产品
如何通过搜索字符串和其他属性从类别中搜索产品 例如:Php 从特定类别搜索Woocommerce产品,php,wordpress,woocommerce,Php,Wordpress,Woocommerce,如何通过搜索字符串和其他属性从类别中搜索产品 例如: 在movie category中,我有20个产品,我想通过搜索字符串(?s='action'参数)搜索movie category,Wordpress搜索字符串接受的movie_type=thiller等其他属性如下所示: 对于属性/自定义字段,可以使用meta_键和meta_值。因此,示例中的查询应该如下所示 http://yoursite.com/?s=action&category_name=movie&meta_ke
在movie category中,我有20个产品,我想通过搜索字符串(?s='action'参数)搜索movie category,Wordpress搜索字符串接受的movie_type=thiller等其他属性如下所示: 对于属性/自定义字段,可以使用
meta_键
和meta_值
。因此,示例中的查询应该如下所示
http://yoursite.com/?s=action&category_name=movie&meta_key=movie_type&meta_value=thriller