您可以使用tax\\u查询并使用and条件:
引用:WP_Query 在分类参数下
$args = array(
\'post_type\' => \'post\',
\'tax_query\' => array(
\'relation\' => \'AND\',
array(
\'taxonomy\' => \'hotels\',
\'field\' => \'slug\',
\'terms\' => array( \'1 Star\' )
),
array(
\'taxonomy\' => \'location\',
\'field\' => \'slug\',
\'terms\' => array( \'loc1\' )
)
)
);
$query = new WP_Query( $args );