the_comment() WordPress Function
Thecomment() function allows you to display a comment, or comments, from a post or page. This function can be used in conjunction with the_ID() function to retrieve the ID of the current post or page.
the_comment() #
Iterate comment index in the comment loop.
Return
(null)
Source
File: wp-includes/query.php
function the_comment() {
global $wp_query;
return $wp_query->the_comment();
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |