So I've been trying for a hour or so now to list comment by it's ID.
I've tried the get_comment($id, $output)
function but it didn't work well, so I went back to whatever is shown below, but it just shows all comments. I want it to show just one comment by it's ID. I can't figure out a way to do it.
What am I doing wrong?
$args = array(
'id' => 1,
);
// The Query
$comments_query = new WP_Comment_Query;
$comments = $comments_query->query( $args );
// Comment Loop
if ( $comments ) {
foreach ( $comments as $comment ) {
echo '<p>'.$comment->comment_content.'</p>';
}
}