|   

$related_posts ); // The comment query $comments_query = new WP_Comment_Query; $comments = $comments_query->query($args); // The comment loop if (!empty($comments)) { foreach ($comments as $comment) { echo '

' . $comment->comment_author . ' (' . $comment->comment_date . ')

'; echo '

' . $comment->comment_content . '

'; } paginate_comments_links(); } else { echo 'No comments found.'; } ?>