Creates functions to assist in displaying a list of the most recent comments. Provides more configurability than the widget that comes with WordPress. Configuration You may pass paramet
This website uses cookies to improve your experience. If you decide to use this website, you agree that certain cookies will be used. If you do not agree please close this website. Read moreACCEPT
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Recent Comments
€0
Creates functions to assist in displaying a list of the most recent comments. Provides more configurability than the widget that comes with WordPress. Configuration You may pass paramet
2.1
2021.03.31
300
0.00
0
Description
Creates functions to assist in displaying a list of the most recent comments. Provides more configurability than the widget that comes with WordPress.
Configuration
You may pass parameters when calling the function to configure some of the options. Parameters are accepted only in the query-string-style.
list_most_recent_comments()
In addition to the parameters that get_comments() and
get_most_recent_comments()
(see below) accept, this function accepts the following parameters:excerpt_words
— The number of words from the comment to displayexcerpt_chars
— Or alternately the number of characters from the comment to displaycomment_format
— Allows you to pick from two predefined display formats:Example:
get_most_recent_comments()
A more powerful version of get_comments(). It accepts the same parameters as well as the following ones:
passworded_posts
— Boolean to control showing comments on passworded posts or not. Defaults tofalse
.showpings
— Boolean to control showing pings and trackbacks or not. Defaults tofalse
.post_types
— Array of post types to include comments from. Defaults to posts and pages:array( 'post', 'page' )
post_statuses
— Array of post statuses to include comments from. Defaults to published posts and static pages:array( 'publish', 'static' )
Arguments should likely be passed as an array instead of a string.
Example: