标签: php wordpress woocommerce
我需要从该产品类别中的WooCommerce产品页面获取其他具有相同标签的产品。我知道如何使用 $ terms = get_the_terms($ post-> ID,'product_tag'); 和 $ terms = get_the_terms($ post-> ID,'product_cat '); 。我不知道如何使用标签过滤类别。有想法吗?