尝试以下方法:
尝试在数组中添加术语ID,如下所示\'exclude\'=> \'60\'
在阵列中
如果这不起作用,您可以尝试以下方法WP_Query
循环:
$args = array(
\'post_type\' => \'careers\',
\'tax_query\' => array(
\'relation\' => \'AND\',
array(
\'taxonomy\' => \'careers_categories\',
\'field\' => \'term_id\',
\'terms\' => array( 60),
\'operator\' => \'NOT IN\',
),
),
);
$query = new WP_Query( $args );