Advanced Tax Query

$args = array(
'post_type' => 'actions',
'post_status' => 'publish',
'posts_per_page' => -1,
'tax_query' => array(
//'relation' => 'AND',
array(
'taxonomy' => 'actions_difficulty_levels',
'field' => 'slug',
'terms' => array($term)
),
array(
'taxonomy' => 'actions_tags',
'field' => 'slug',
'terms' => array('rebate'),
//'operator' => 'NOT IN'
)
)
);
$actions = get_posts($args);

0 Comments

You must be logged in to post a comment.