select product included more than one category by SQL query in WordPress
i used below code to select product from specific category and work fin but i want to select product if include more than one category SELECT post.ID, post.post_title FROM `wp_posts` as post INNER JOIN wp_term_relationships AS tr ON tr.object_id = post.ID WHERE post.`post_type` IN ('product','product_variation') AND tr.term_taxonomy_id IN(32,25) I use IN(32,25) and return all product include in two category , how can… Continue reading "select product included more than one category by SQL query in WordPress"