Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Set Custom Tax Query
- $taxquery = array(
- 'relation' => 'OR',
- array(
- 'taxonomy' => 'wedding-season',
- 'field' => 'slug',
- 'terms' => array('summer'),
- 'operator' => "NOT IN"
- ),
- array(
- 'taxonomy' => 'color-palette',
- 'field' => 'id',
- 'terms' => array(123),
- 'operator' => "IN"
- ),
- array(
- 'taxonomy' => 'venue',
- 'field' => 'id',
- 'terms' => array(126),
- 'operator' => "IN"
- ),
- array(
- 'taxonomy' => 'table-setting',
- 'field' => 'id',
- 'terms' => array(129),
- 'operator' => "IN"
- ),
- array(
- 'taxonomy' => 'table-setting',
- 'field' => 'id',
- 'terms' => array(129),
- 'operator' => "IN"
- ),
- );
- $query_args['tax_query'] = $taxquery;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement