你使用的论点是错误的。它们应该是:
$args = array(
\'numberposts\' => \'10\',
\'post_type\' => \'post\',
\'post_status\' =>\'publish\',
\'tax_query\' => array(
\'taxonomy\' => \'category\',
\'field\' => \'id\',
\'terms\' => array( 10, 11, 57 ),
\'operator\' => \'NOT IN\',
)
);
或更短:
$args = array(
\'numberposts\' => \'10\',
\'post_type\' => \'post\',
\'post_status\' => \'publish\',
\'category__not_in\' => array( 10, 11, 57 )
);