如何将帖子类型数组添加到此查询中? 时间:2011-03-14 作者:jwp $pp = new WP_Query(\'orderby=comment_count&posts_per_page=4\'); ?> 1 个回复 最合适的回答,由SO网友:TheDeadMedic 整理而成 $pp = new WP_Query(array( \'post_type\' => array( \'post\', \'custom_type\' ), \'orderby\' => \'comment_count\', \'posts_per_page\' => 4 )); 结束 文章导航