For two different taxonomies. For a single one, you can leave the relation arg out.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
$args = array( 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'movie_janner', 'field' => 'slug', 'terms' => array( 'action', 'commedy' ) ), array( 'taxonomy' => 'actor', 'field' => 'id', 'terms' => array( 103, 115, 206 ), 'operator' => 'NOT IN' ) ) ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.