Hello, I’m sorry for the late reply.
[comment avatar]
should show the comment author’s avatar, inside a [comments]
loop. I tested this, and it’s working correctly on my end.
By “guest’s avatar”, do you mean the avatar of the currently logged-in user? In that case, you would want: [user avatar]
.
Hi Eliot,
by “guest’s avatar”, I mean visitors who comment and enter their email.
I use this CC script:
[h3]Comments[/h3]
[comments count="5"]
[comment avatar size="48"][comment author] comments on
[comment title-link]
[comment url]
[br]
[/comments]
and produced this screenshot
supposed to be like this screenshot
Thank you
Thank you for pointing this out, and the right code to fix it. I didn’t realize it was possible to pass e-mail to get_avatar()
but I see it works better. I’ve included your patch in the newest update.
I just updated to the latest.
Thank you for great plugin and great support Eliot.
(@indrayn)
8 years, 10 months ago
Maybe I use it incorrectly?
For my purpose I patch file ‘includes/modules/comments.php’ line 307,
from
$author_id = $comment->user_id;
to$author_id = get_comment_author_email($comment->comment_ID);
Thanks for great plugin!
https://wordpress.org/plugins/custom-content-shortcode/