This plugin allows to display or retrieve comments posted by a user. In order to avoid homonyms, a user is identified by his name and email(s). Note: Get Author’s Comments uses the fu
Note: If you used the tags ppm_author_comments or ppm_get_author_comments whithin The Loop, the parameter $postID will be replaced automatically by the numeric ID of the current post.
Lastest comments ordered by post_ID
To show the last ten piouPiouM’s comments sorted by post_ID in ascending order, the following will display their comment date and excerpt:
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.
Get Author’s Comments
€0
This plugin allows to display or retrieve comments posted by a user. In order to avoid homonyms, a user is identified by his name and email(s). Note: Get Author’s Comments uses the fu
1.1.0
2009.03.26
10
2.7-beta1
2.9.2
0.00
0
Description
This plugin allows to display or retrieve comments posted by a user. In order to avoid homonyms, a user is identified by his name and email(s).
Note: Get Author’s Comments uses the function wp_list_comments introduced by WordPress 2.7 for the (x)HTML output.
Usage
Display all comments of a specific user in the current post
or, if piouPiouM wrote with two different emails:
Display all comments posted by a user
Display comments wrote by a user in the post of ID number 9
Note: If you used the tags
ppm_author_comments
orppm_get_author_comments
whithin The Loop, the parameter$postID
will be replaced automatically by the numeric ID of the current post.Lastest comments ordered by post_ID
To show the last ten piouPiouM’s comments sorted by post_ID in ascending order, the following will display their comment date and excerpt:
Comments with a custom comment display
See Comments Only With A Custom Comment Display for an example of a custom callback function.
Show the total number of comments posted by a user on the site
all
(boolean) (optional) Retrieve all comments. Default to FALSE.
number
(integer) (optional) Number of comments to return. Default to None, returns all comments.
offset
(integer) (optional) Offset from latest comment. Default to 0.
orderby
(string) (optional) Sort posts by one of various values (separated by space), including:
'comment_ID'
– Sort by numeric comment ID.'content'
– Sort by content.'date'
– Sort by creation date. (Default)'post_ID'
– Sort by post ID.'rand'
– Sort in random order.'status'
– Sort by status.'type'
– Sort by type.order
(string) (optional) Sort order, ascending or descending for the orderby parameter. Valid values:
'ASC'
– Ascending (lowest to highest).'DESC'
– Descending (highest to lowest). (Default)output
(string) (optional) How you’d like the result. Only for
ppm_get_author_comments
.OBJECT
– Returns an object. (Default)ARRAY_A
– Returns an associative array of field names to values.ARRAY_N
– Returns a numeric array of field values.HTML
– Returns a (x)HTML version generated by wp_list_comments.status
(string) (optional) The comments status. Default to hold and approve. Valid values:
'hold'
– Unapproved.'approve'
– Approved.'spam'
– Spam.