Comments Loop (category)
| comment_author() | Outputs the name of the comment author. |
| comment_author_email() | Displays the author's email of the comment on the screen. |
| comment_author_link() | Outputs the name of the comment author as a link to the URL provided when commenting. |
| comment_author_url() | Outputs the URL of the commenter, which is specified when commenting. Only the URL is output, not a link. |
| comment_author_url_link() | Outputs the author's comment URL as a link. |
| comment_class() | Outputs CSS classes to assist in styling comments. |
| comment_date() | Outputs the publication date of the comment. You can specify the desired format. |
| comment_excerpt() | Displays a trimmed comment (maximum 20 words). |
| comment_ID() | Displays the ID of the current comment. Uses in a comments loop. |
| comment_link() | Outputs the comment link (URL). |
| comment_reply_link() | Outputs a link <a> that allows replying to a comment. The tag is used in the comments loop, for each comment. |
| comment_time() | Outputs the time of the comment publication. Used inside the comment loop. |
| comments_number() | Displays the number of comments for a post. Notifications and pings are included in the count. For use within the WordPress Loop. |
| edit_comment_link() | Outputs a link (HTML tag A) for editing the current comment in the loop, if the user has permission to do so. |
| get_comment_author() | Gets the name of the comment author. If the "author name" (comment_author) field is empty, the function will return: "Anonymous" ( |
| get_comment_author_link() | Gets the HTML link (<a>) to the author's site of the current comment. The anchor of the link will be the author's name. If the author did not specify their site when commenting, the function will return just the author's name, without a link. |
| get_comment_author_url() | Returns the URL of the comment author (usually this is the commentator's website). Returns the URL, not the HTML tag <a>. Used within the comments loop. If the comment author does not have a link specified, it will return an empty string. |
| get_comment_class() | Gets CSS classes as an array for the DIV tag that wraps each comment in a loop. |
| get_comment_date() | Gets the date of the specified comment. |
| get_comment_excerpt() | Gets a trimmed version of the current or specified comment (maximum 20 words). |
| get_comment_ID() | Outputs the ID of the current comment. Used in the comments loop. |
| get_comment_time() | Gets the publication time of the current comment. Used inside the comments loop. |
| have_comments() | Checks if there are comments to display on the current post page. Conditional tag. |