Advertisement
ikamal7

tax query

Sep 24th, 2020
2,270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $args = array(
  2.     'tax_query' => array(
  3.         'relation' => 'AND',
  4.          array(
  5.                 'taxonomy' => 'job-type',
  6.                 'field'    => 'term_id',
  7.                 'terms'    => $term_id,
  8.             ),
  9.         array(
  10.                 'taxonomy' => 'industry',
  11.                 'field'    => 'slug',
  12.                 'terms'    => $industry,
  13.             ),
  14.     ),
  15. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement