Comment on Comments WordPress SEO Plugin by SEO Dave.

WordPress SEO Comments Plugin No comment author emails, that’s a new one :-)

Not tested, but edit the file

/wp-content/plugins/blog-comments-seo/blog-comments-seo.php

Change line 104 to:

$comments = $wpdb->get_results($wpdb->prepare("SELECT comment_author, comment_author_url, comment_content, comment_post_ID, comment_ID, comment_author_email FROM $wpdb->comments WHERE comment_approved = '1' AND comment_author ='%s' AND comment_post_ID = '$pid' AND NOT comment_ID='$cid' ORDER BY comment_date_gmt DESC LIMIT 3",$author));

And change line 114 to:

$comments = $wpdb->get_results($wpdb->prepare("SELECT comment_author, comment_author_url, comment_content, comment_post_ID, comment_ID, comment_author_email FROM $wpdb->comments WHERE comment_approved = '1' AND comment_author ='%s' AND NOT comment_post_ID = '$pid' ORDER BY comment_date_gmt DESC LIMIT 5",$author));

That should do it. That should for both the “Author Name Also Commented” and “Recent Comments by Author Name” output use author name to select the comments.

If you have comments with the same author name they will be listed together. So if you have two people posting with the name Richard, they’ll mash together. Using email addresses it’s less likely to happen: generally only occurs when using fake email addresses.

David