这将允许您通过id提取帖子的评论,然后编辑帖子返回的内容信息。您需要添加CSS和html来设置注释的样式。
$args = array(
\'author_email\' => \'\',
\'author__in\' => \'\',
\'author__not_in\' => \'\',
\'include_unapproved\' => \'\',
\'fields\' => \'\',
\'ID\' => \'\',
\'comment__in\' => \'\',
\'comment__not_in\' => \'\',
\'karma\' => \'\',
\'number\' => \'\',
\'offset\' => \'\',
\'orderby\' => \'\',
\'order\' => \'DESC\',
\'parent\' => \'\',
\'post_author__in\' => \'\',
\'post_author__not_in\' => \'\',
//Post id here
\'post_id\' => \'162\',
////////////////////////
\'post__in\' => \'\',
\'post__not_in\' => \'\',
\'post_author\' => \'\',
\'post_name\' => \'\',
\'post_parent\' => \'\',
\'post_status\' => \'\',
\'post_type\' => \'\',
\'status\' => \'all\',
\'type\' => \'\',
\'type__in\' => \'\',
\'type__not_in\' => \'\',
\'user_id\' => \'\',
\'search\' => \'\',
\'count\' => false,
\'meta_key\' => \'\',
\'meta_value\' => \'\',
\'meta_query\' => \'\',
\'date_query\' => null, // See WP_Date_Query
);
$comments = get_comments($args);
foreach($comments as $comment) :
// echos the comment author and the content, you can use any of the above tags to create the displayed data but will need to custom the html/CSS style
echo($comment->comment_author . \'<br />\' . $comment->comment_content. \'<br />\');
endforeach;
?>
<div class="comments-navigation">
<div class=\'previous-comments-link\'><?php previous_comments_link(); ?></div>
<div class=\'next-comments-link\'><?php next_comments_link(); ?></div>
</div>
<?php