Answers:
您可以使用get_comments
。功能参考/获取评论
$args = array('cat' => 'home','post_type' => 'post'));
$post_obj = new WP_Query($args);
while($post_obj->have_posts() ) : $post_obj->the_post();
//display comments
$comments = get_comments(array(
'post_id' => $post->ID,
'number' => '2' ));
foreach($comments as $comment) {
//format comments
}
endwhile;