您只需设置operator
参数到\'NOT IN\'
(see Codex on tax queries).
未经测试,但出于您的目的:
$args = array(
\'post_type\'=> \'post\',
\'post_status\' => \'publish\',
\'order\' => \'DESC\',
\'tax_query\' => array(
array(
\'taxonomy\' => \'post_format\',
\'field\' => \'slug\',
\'terms\' => array( \'post-format-aside\' ),
\'operator\' => \'NOT IN\'
)
)
);