Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp_query not have term

$posts_query = new WP_Query( array(
    'tax_query' => array(
        array(
            'taxonomy' => 'foo',
            'operator' => 'NOT EXISTS', // or 'EXISTS'
        ),
    ),
) );
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #term
ADD COMMENT
Topic
Name
1+2 =