How to create a wp_query that contains both meta_query and tax_query

The query looks about right and I know that meta_query and tax_query work together just fine. the only thing i can think of is that you are query taxonomy by slug and passing the term id which are two different things, change:

'field'     => 'slug',

with

'field'     => 'id',

in your tax_query.

Leave a Comment