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)


Top ↑

Source

File: wp-includes/query.php

function the_comment() {
	global $wp_query;
	return $wp_query->the_comment();
}


Top ↑

Changelog

Changelog
VersionDescription
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.