Support » Plugins » get_comments for parent comment

  • I’m having problems working with the get_comments() function. I don’t have any problems getting comments for a particular post. I would like to get comments for a particular comment (i.e. with a parent comment).

    I’m passing in the ‘parent’ argument, but I always get back the full set of comments. What am I doing wrong?

    $comments = get_comments(array('post_id' => $post->ID, 'status' => 'approve', 'parent' => $commentId));
  • The topic ‘get_comments for parent comment’ is closed to new replies.