dlovas
2/5/2018 - 3:31 AM

WP_Query with Multiple Taxonomies

https://tommcfarlin.com/get-posts-with-multiple-taxonomies/
<?php
$args = array(
	'post_type' => 'acme_post_type',
	'tax_query' => array(
		'relation' => 'AND',
		array(
			'taxonomy' => 'acme_labels'
			'field'    => 'term_id',
			'terms'    => 100
		),
		array(
			'taxonomy' => 'acme_labels',
			'field'    => 'term_id',
			'terms'    => 200
		)
	)
);
$posts = get_posts( $args );