Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1.                                 $tax_query = array(
  2.                                     'relation' => 'AND',
  3.                                     array(
  4.                                         'taxonomy' => $taxonomy,
  5.                                         'terms' => $terms_array,
  6.                                         'field' => 'term_id',
  7.                                     ),
  8.                                     array(
  9.                                         'taxonomy' => $taxonomy,
  10.                                         'terms' => array( 'all-countries' ),
  11.                                         'field' => 'slug',
  12.                                         'operator' => 'NOT IN'
  13.                                     ),
  14.                                 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement