Try with WP_Comment_Query and make sure you have the right Author ID from the Author Template.
// WP_Comment_Query arguments
$args = array (
'user_id' => $user->ID,
'post_status' => 'approve',
'number' => '10',
);
// The Comment Query
$comments = new WP_Comment_Query;
$comments = $comments->query( $args );
// The Comment Loop
if ( $comments ) {
$output.= "<ul>\n";
foreach ( $comments as $c ) {
$output.= '<li>';
$output.= '<a href="'.get_comment_link( $c->comment_ID ).'">';
$output.= get_the_title($c->comment_post_ID);
$output.= '</a>, Posted on: '. mysql2date('m/d/Y', $c->comment_date, $translate);
$output.= "</li>\n";
}
$output.= '</ul>';
echo $output;
} else {
echo 'No comments found.';
}
Related Posts:
- Display all comments or recent comments per user on author page
- get_comment_author_link not working properly
- Change Comment Author Display Name
- Display Authors Comments on Profile Page
- Check If comment author is registered
- Comment Author Name In Reply Form
- WP_Comment_Query() displays “password protected” comments?
- how to make author to write comment on only his own posts?
- How to check if commenter is the_author?
- WP_Comment_Query with 5 top level comments per page?
- Let user edit his own comment
- How would I count the number of times a comment meta field’s value is in a post’s entire comments?
- edit comments capability for authors
- Why are authors allowed to approve comments on their posts? How to revoke privilege?
- Exclude child comments in get_comments() or WP_Comment_Query?
- How to query comments only for the current post?
- Hide notifications regarding new comments
- Author can only see own post comment and can moderate
- WordPress comments on users profile
- Comment displaying full name even after setting another display name?
- Same email for all comments
- Notify post author for a new comment on his post?
- Comments on Author page
- Showing author page if user has no post
- How many members have made comments approved for an article?
- Commentlist: bypostauthor problem with children list
- How to make comments private for commentor and post author
- How is the author’s name given a different color?
- Only Allow post author and “Premium” Role user to comment
- Get Comment Author ID on the fly while posting
- Comment Table Size Results in Slow Page Loads and 500 Errors
- How can I hide comment of the authors from their published posts?
- Show all people who commented on all posts by an author
- WordPress Custom Local Avatar not showing in comments
- Attaching author tag to the comment
- How to prevent users/authors from seing IP/email of new commentators?
- Author name length character limit?
- Comments counter only for Authors Posts
- Comments pagination on author page
- Change author, disable comments, enable trackbacks for all items in library
- Trying to get property of non-object notices in comment-template.php
- Allowing comments on author pages
- Prevent author from editing comments from others in their post
- URLs to user page is broken
- How to ‘If Author’ Comments Check
- Author page link in comments is different than in posts?
- Auto approve all comments (editor)
- The last comments of a post for the author of that post
- Restrict users to see only own comments and the post author’s replies
- Get approved comments or comments that the author is me
- Paste URL In comment It auto turn to default title of page with link
- How do I comment out a block of tags in XML?
- R: Comment out block of code
- Why do I get comment spam even with Akismet and Captcha?
- What tools are available for managing/writing to WordPress? [closed]
- How to rearrange fields in comment_form()
- setting comments off as default for pages and custom post types?
- Is it possible to pull comments from facebook into your blog?
- Filtering the Admin Comments List to Show Only Comments from the Current User?
- Non-threaded comment replies with link to original comment
- Approve comment hook?
- Commenting in user profile page?
- How to change “You must be logged in to post a comment.”
- comment_post_ID 0 (cannot remove from dashboard)
- Disable comments on all posts/pages
- How do I delete all comments from a specific old blog post?
- Removing the “Website” Field from Comments and Replies?
- Stop WordPress redirecting comment-page-1 to the post page?
- Importing old Disqus comments into WordPress
- How to add a class to the comment submit button?
- How to wrap submit button of comment form with div
- How to enable comments for pending and draft posts?
- Using WordPress’ WYSIWYG for comments
- Enable Submit Comment Without Page Reload (Using Ajax)?
- What for is the table “wp_commentmeta” exactly?
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- Add option to disable comments on a per posts basis?
- Resetting comment count
- When importing – failed to import: Invalid post type feedback
- How to change the email notification recipient (user) for new comments?
- Redirect user to a custom url after submitting the comment
- Paginate result set from $wpdb->get_results()
- Would switching to InnoDB from MyISAM improve performance of comments table?
- Custom comment type based on thread level
- How to add internal, revision comments to page updates
- How to load and show comments with AJAX instead of pagination?
- Linking to Page Showing Only Comments Without Parent Post
- Comment Reply javascript
- How do we remove the H3 tag for the reply-title I.D
- Comments not appearing at all
- comments reply script not working
- How to display comment form error messages in the same page
- 3 moderators to approve comment
- How to deal with small scale comment spam on small commercial sites? [closed]
- What should I do to make generated avatars different for anonymous comments?
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- Comments screen in backend, how to disable email address of commenter for non admins
- Add comments from the admin panel?
- How can I limit the number of comments per registered user per day?
- One comment per user per post but be able to reply to existing comments