a guest Aug 10th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- select distinct(tt.term_taxonomy_id) as categs from
- wp_term_relationships tr
- left outer join wp_term_taxonomy tt on tt.term_id = tr.term_taxonomy_id
- left outer join wp_terms on wp_terms.term_id = tr.term_taxonomy_id
- where object_id in('" . $contatos_cod . "') and tt.taxonomy = 'product_cat' and parent > 0
RAW Paste Data