你应该经历所有wpQuery 易于理解的文档。要执行此任务,请使用此进行查询:
$args = array(
\'post_type\' => \'your_custom_postType\',
\'tax_query\' => array(
array(
\'taxonomy\' => \'your texonomy \', //like category, actor, people etc.
\'field\' => \'slug\',
\'terms\' => \'your_term\', //like rock,bread, tom
),
),
);
$query = new WP_Query( $args );