你只需要tax_query
使用AND
关系For example, this one cribbed from the Codex, with one change:
\'tax_query\' => array(
\'relation\' => \'AND\', // here is the change
array(
\'taxonomy\' => \'category\',
\'field\' => \'slug\',
\'terms\' => array( \'quotes\' ),
),
array(
\'taxonomy\' => \'post_format\',
\'field\' => \'slug\',
\'terms\' => array( \'post-format-quote\' ),
),
),