Here’s one way with the following tax query:
'tax_query' => [
[
'taxonomy' => 'category',
'field' => 'slug',
'terms' => [ 'foo' ],
'operator' => 'NOT IN'
],
],
where the foo
term slug is excluded.
Here’s one way with the following tax query:
'tax_query' => [
[
'taxonomy' => 'category',
'field' => 'slug',
'terms' => [ 'foo' ],
'operator' => 'NOT IN'
],
],
where the foo
term slug is excluded.