I have this code :
if($pf_categorynotin){
$args['tax_query'] = array(
array(
'taxonomy' => 'portfolio_category',
'field' => 'slug',
'terms' => $pf_categorynotin,
'operator' => 'NOT IN'
)
); //category__in
}
It has one taxonomy defined which is portfolio_tag.
What I want to do is to add another taxonomy like portfolio_tag
I’m not sure if will work like this: 'taxonomy' => 'portfolio_category', 'portfolio_tags',
Basically what I want to do is add also another taxonomy in that array.
If you want more than one value you have to use an array, so replace your following line:
for this one:
but remember that the code that reads
$args['tax_query']will have to be adapted to take into account that$args['tax_query'][0]['taxonomy']could now be an array or a string.