wp query not have term

Solutions on MaxInterview for wp query not have term by the best coders in the world

showing results for - "wp query not have term"
Santino
14 Jan 2020
1$posts_query = new WP_Query( array(
2    'tax_query' => array(
3        array(
4            'taxonomy' => 'foo',
5            'operator' => 'NOT EXISTS', // or 'EXISTS'
6        ),
7    ),
8) );
9