我可以将where条件应用于此查询,即category =" setting"

时间:2017-09-28 04:40:09

标签: php wordpress mysqli woocommerce

$metstyl= "SELECT concat(wtt.taxonomy,':' ,GROUP_CONCAT(wt.name separator ',')) as result 
FROM `wp_term_taxonomy` as wtt, `wp_terms` as wt
where (wtt.taxonomy IN ('pa_metal','pa_style') 
AND wtt.term_id = wt.term_id 
AND wtt.count>0)  group by taxonomy";

0 个答案:

没有答案