get_comments for parent comment (1 post)

  1. nstoddar
    Posted 6 years ago #

    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));

Topic Closed

This topic has been closed to new replies.

About this Topic