Answers for "wp_query not have term"

PHP
0

wp_query not have term

$posts_query = new WP_Query( array(
    'tax_query' => array(
        array(
            'taxonomy' => 'foo',
            'operator' => 'NOT EXISTS', // or 'EXISTS'
        ),
    ),
) );
Posted by: Guest on May-26-2021

Browse Popular Code Answers by Language