Plugin info

Total downloads: 3,140
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 8/2/2009 (5995 days ago)
Added to WordPress: 12/9/2008 (17 years old)
Minimum WordPress version: 2.7
Tested up to WordPress version: 2.9.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5995 days ago

20/100

Is Get Author's Comments abandoned?

Possibly abandoned (last update 5995 days ago).

Compatibility

Requires WordPress: 2.7
Tested up to: 2.9.2
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

cbnet Multi Author Comment Notification
Rating 4.3/5 (6 reviews)Active installs 1,000
Comment Moderation E-mail only to Author
Rating 5.0/5 (4 reviews)Active installs 1,000
Custom Comment Notifications
Rating 5.0/5 (6 reviews)Active installs 100
Simple Comment Notification
Rating 3.7/5 (3 reviews)Active installs 100
Fix Gravatar Alt Text & Title Tag
Rating 0.0/5 (0 reviews)Active installs 100
Simple Author Highlighter
Rating 5.0/5 (1 reviews)Active installs 80

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 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:


says:

  1. Comment posted on :

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

display_name, $current_user->user_email, null, 'all=1');
    printf('Hello ! %s! '
         . '[ Log Out ]
' . '%d posts and %d comments', $current_user->user_login, $current_user->display_name, wp_logout_url(), get_usernumposts($current_user->ID), count($comments)); ?>

Parameters

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.

Installation

Get Author’s Comments is installed in 3 easy steps:

  1. Upload get_authors_comments.php to the /wp-content/plugins/ directory.
  2. Activate Get Author's Comments through the Plugins menu in WordPress.
  3. Add in your theme:

    <?php if (function_exist('ppm_author_comments')): ?>
        <ol>
            <?php ppm_author_comments('name', 'email', 'post_ID', 'args') ?>
        </ol>
    <?php endif ?>
    

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.1.0

  • Support a new all argument for retrieves all comments posted by a user.
  • Add changelog and additional examples.

1.0.1

  • The arguments are case insensitive.
  • Support of two new orderby arguments: comment_ID and post_ID.
  • Set default orderby argument to date.

1.0.0

  • Initial release.