your problem is using author_email
, you need user_id
:
i just use similar script.
<?php
$args = array(
'user_id' => get_the_author_meta('ID'),
'number' => 10, // how many comments to retrieve
'status' => 'approve'
);
$comments = get_comments( $args );
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 made";}
?>
Related Posts:
- List user comments in 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
- how to make author to write comment on only his own posts?
- How to check if commenter is the_author?
- Let user edit his own comment
- edit comments capability for authors
- Why are authors allowed to approve comments on their posts? How to revoke privilege?
- 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
- Most recent post is missing from Author page
- How many members have made comments approved for an article?
- Commentlist: bypostauthor problem with children list
- Only Allow post author and “Premium” Role user to comment
- Get Comment Author ID on the fly while posting
- 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
- 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)
- Add option to disable comments on a per posts basis?
- Paginate result set from $wpdb->get_results()
- How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?
- Threaded comments – deleting parent comment leads to orphan comments
- Is there any advantage to emptying comment spam?
- Twitter/Facebook login for comments [closed]
- Add delete, approve, spam Links to Comments
- FB – Comment Moderation Tool bug or error in the code?
- If new comment posted in custom post – send notification to custom email from custom field
- Disable Admin account being emailed for comment notification
- Can I have two single.php files and have one display just the post and the other display comments for that specific post?
- How can I change the link in comment form “Log in to post a comment”?
- remove_filter( ‘comment_author’, ‘floated_admin_avatar’ ); doesn’t work
- Does wp_new_comment expect a comment in HTML?
- Ajax comments not working
- Show woocommerce products in author archive
- Redirect to page 2 after comment
- WordPress Comments are automatically publishing
- save_post action hook for comments
- Automatically increase comment karma on comment save
- How to handle upvotes and downvotes of disqus comments after importing disqus comments to wordpress?
- All users/comments suspected as bot? [closed]
- Show comments of a user post only when they are login
- comments in Admin
- How to get and use the the number of days since the last comment?
- Get all child comments ids from parent comment id
- How do I add class to an admin comment?
- How to make comments private for commentor and post author
- Name of comment field differs on different sites
- WordPress Spam Comment Filter
- Which hook do I use to edit pending comment count on wordpress dashboard?
- Add comment_id on Comments page within wp-admin
- comment button shows only logged in users wordpress
- Getting comments of an specefic user
- How can I embed comments plugin to my own website?
- get only one last comment from each post
- Limit action in comment according to IP
- How to get recent comment link
- stumped on add_action hook to delete_comment – any ideas?
- Can I create a new comment type?
- Avoiding calls to theme-compat
- Allow tags between shortcode in comments
- Delete/Spam Comment Button
- Who approved a comment, to show up in dashboard
- I have an odd field with a purple background, mentioning HTML-codes to use while leaving comments
- No comment Section but still got a Comment
- Why are my threaded comments not quite working? [closed]
- $post->comment_status always returns ‘closed’
- Order comments in admin by custom date
- WordPress Comments – Divide by conversation like Medium.com
- Redirect first time comments
- Posting XML in comment section
- How to check if post has previous_comments_link() and next_comments_link()
- Comments – Ensure the correct field is highlighted for nested replies
- How to hold all comments for moderation, including author’s comments on own post
- WordPress error when sending comment
- WordPress Page Template: Comment Filtering with Querystring
- comments are going to spam
- Why default comment fields don’t show up?
- How to enable truly anonymous posting in bbPress forums? [closed]
- WordPress Editor widgets “comments” and “post comments form” getting disappeared with elementor [closed]