像comment_ID 是唯一的值,无需包含post_id 在参数中。
这对我来说很好:
$args = array(
    \'status\' => \'approve\', 
    \'number\' => \'5\',
    \'parent\' => 3194
);
$comments = get_comments($args);
 这将返回5条已批准的注释,其父级是具有
comment_ID 3194
示例输出可以通过以下方式完成:
foreach($comments as $child_comment) {
    echo $child_comment->comment_ID;  
}