How is it possible to get top comment from all children?


I’m able to check whether or not the parent comment is the top comment:

$comment_obj = get_comment( $comment_ID );
$parent_ID = $comment_obj->comment_parent;

But I’d like to be able to get the top comment no matter if I am posting a child or grandchild etc. I can’t find much information of retrieving parent/top comments at all?

Darryl Syms 4 months 0 Answers 11 views 0

Leave an answer