听起来你在找NOT IN
的值operator
a的参数tax_query
.
根据您的情况,您应该使用WP_Query
或pre_get_posts
.
然后,您的tax\\u查询将如下所示:
\'tax_query\' => array(
array(
\'taxonomy\' => \'{your taxonomy slug}\',
\'field\' => \'slug\',
\'terms\' => \'featured\',
\'operator\' => \'NOT IN\'
)
)