Chris777uk
Member
Posted 3 years ago #
hello all
ive tried a few gravatar plugins but none seem to work (ive prob done something wrong!) they show the gravatars in the WP dashboard / comments but not on the actual comments on the site?
Any help or points in the right direction would be very much apreciated!
thanks for looking
Chris
mhhh... I might be inexperienced in this, but I don't use any gravatar plugin and they are already in my theme. I explain. while developing my own theme I just copied the comments files (comments-popup.php and comments.php) from the Kubric theme, with the intention to do mines later because I didn't have time, and suddenly they were there already... and work nice by itself...
I suggest to try this, and to check the code inside the comments.php which calls the gravatar function.
Good Luck~
Gravitar support was added to core in 2.5.
Chris777uk
Member
Posted 3 years ago #
thanks for the replies
Do you have the code you used please?
Thanks
Chris
Correct me if I am wrong, but I guess it's this one
<?php echo get_avatar( $comment, 32 ); ?>
which is used here:
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<?php echo get_avatar( $comment, 32 ); ?>
<cite><?php comment_author_link() ?></cite> dice que:
<?php if ($comment->comment_approved == '0') : ?>
<em>Su Comentario espera Moderación. Será publicado en breve por el Admin del sitio.</em>
<?php endif; ?>
louzucaro
Member
Posted 3 years ago #
I downloaded the WP-Gravatar plugin, but it won't activate. I keep getting a parse error on line 752 :(
Anybody have experience with this / how to make it work? I tried the Gravatar support site, but their system never e-mailed my password and I can't post a request without it.
If you're using the latest WordPress, you don't need a plugin. Gravatar support is built in.
Chris777uk
Member
Posted 3 years ago #
thanks all ill see if i can get it working :)