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
- Is it possible to pull comments from facebook into your blog?
- How to deal with small scale comment spam on small commercial sites? [closed]
- Add placeholder attribute to comment form fields
- human_time_diff() returns “48 years ago” for all comments
- Why are default comments deprecated?
- Comments Reply Form
- Strategies for coping with hyperagressive spambots?
- How to save new comment as custom comment type?
- How to remove the “on” string before recent comments link?
- WordPress unresponsive after calling wp_update_comment()
- How can I edit the Twenty Ten Theme to remove the comments box when a page uses a specific template?
- Highlight Author Comments issues
- How can I fix wp_insert_comment failure when ‘comment_content” includes slanted apostrophe in Excel csv source data
- The comment login form is visible to me but not to the user
- How to insert a comma to the child comment construction in function.php?
- Editing WordPress comments : generating comment from selection
- how to properly use comments-template.php
- Reply By Email to comment notifications
- wp_list_comments renders incorrectly nested
- Alternative to the filter comment_reply_link
- Number/ Position of a Comment
- Post list based on the page author
- code highiglight not working comment
- Comment number does not increment
- Can I have Comments open to specific users only?
- How to edit the text below “Leave a Reply”
- Commenting system for WordPress
- Comments does not work?
- comment_notes_before not working
- why can’t I retrieve the comment ID?
- get_comment_link without pagination base in the returned URL?
- Copy and Paste Password for Comments
- Returning error upon comment being flagged as spam
- is it possible to have the full code instead in the comments.php page
- How do i remove approved spam comments by date?
- Remove Javascript generated by Comments
- How to only show current user’s comments and comments on current user’s posts in wp admin
- How to make author comment name to “Editorial Staff” no matter which ever author is replying to comments from his/her account?
- Changing the Comment Fields using Filter (without success)
- Comments pagination: reverse JUST the links texts (1-2-3 to 3-2-1), not comments order
- Display date and time into post edit comments section
- Disallowed Tag Present in AMP WordPress ()
- Comments/Discussion Not enabled on newly created posts/pages
- How can I enable commenting from mobile view?
- jQuery to Create Button to Show/Hide WordPress Comments and to Hide Comments by Default
- Comment form – different title if no comment yet
- WordPress Comments jQuery Doesn’t submit
- How to batch convert comments to posts?
- I need help about wordpress of members section
- How to disable comments on new blog post, but allow on new products?