having problems in gravatar
-
hey!
I put this code in the each comment loop:<?php if ( !empty( $comment->comment_author_email ) ) { $md5 = md5( $comment->comment_author_email ); $default = urlencode( '' ); echo "<img src='https://www.gravatar.com/avatar.php?gravatar_id=$md5&size=40&default=$default' alt='' />"; } ?>
problem is that sometimes the image is not showing at all and the default image of gravatar is being shown.
I also tried gravatar2 plugin but it was worse that the above code.
can anyone help me??
thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘having problems in gravatar’ is closed to new replies.