Comments (category)

allowed_tags()

Outputs the allowed HTML tags and their attributes. Outputs as an encoded HTML string.

cancel_comment_reply_link()

Outputs a link for the comment form: "cancel reply".

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_email_link()

Outputs the email address of the commenter as a mailto link.

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_form()

Displays the ready code for the comment form.

comment_form_title()

Outputs the text for the comment form title, considering whether the commentator is replying to another comment or simply commenting on the post.

comment_ID()

Displays the ID of the current comment. Uses in a comments loop.

comment_id_fields()

Generates 2 hidden fields for the comment form: comment_post_ID and comment_parent. These fields are needed for the correct operation of the comment form.

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_text()

Outputs the comment text on the screen.

comment_time()

Outputs the time of the comment publication. Used inside the comment loop.

comment_type()

Displays the name of the comment type. The names can be arbitrary.

comments_link()

Outputs the link (URL) to the comment form for the current post.

comments_number()

Displays the number of comments for a post. Notifications and pings are included in the count. For use within the WordPress Loop.

comments_popup_link()

Outputs a ready <a> link to the comment popup, works when using the script comments_popup_script().

get_avatar()

Retrieve the <img> tag with the avatar of a user who is authorized or provided an email address when commenting. Most commonly used in the comments section.

get_comments_number_text()

Gets the localized label for the number of comments on a post. Notifications and pings are included in the count. For use within the WordPress Loop.

have_comments()

Checks if there are comments to display on the current post page. Conditional tag.

next_comments_link()

Outputs a link (A tag) to the next page of comments.

paginate_comments_links()

Outputs a list of links to the comment pages (pagination links) of the current post.

post_comments_feed_link()

Outputs a link to the comments feed of the current post.

previous_comments_link()

Displays a link to the previous comments page.

wp_list_comments()

Outputs comments of posts (posts, pages). The function can accept a number of parameters and is used in the template to display a list of comments for a post/page. Some parameters can be configured in the admin panel.