尝试使用array方法,对其父级使用回复帖子类型。
<?php
$args = array(
\'post_type\' => \'reply\',
\'status\' => \'approve\',
\'post_parent\' => $postID,
\'posts_per_page\' => 50,
\'orderby\' => \'date\',
\'order\' => \'ASC\',
\'hierarchical\' => true,
\'ignore_sticky_posts\' => true,
);
foreach(get_comments($args) as $comment) :?>