Created
July 5, 2020 00:26
-
-
Save ivanteoh/1f2513ec0f895604b7b9e845873821cc to your computer and use it in GitHub Desktop.
Add Gravatar in WordPress Comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> | |
<?php if(function_exists('get_avatar')) { echo get_avatar($comment, '50'); } ?> | |
<cite><?php comment_author_link() ?></cite> Says: | |
<?php if ($comment->comment_approved == '0') : ?> | |
<em>Your comment is awaiting moderation.</em> | |
<?php endif; ?> | |
<br /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> | |
<cite><?php comment_author_link() ?></cite> Says: | |
<?php if ($comment->comment_approved == '0') : ?> | |
<em>Your comment is awaiting moderation.</em> | |
<?php endif; ?> | |
<br /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(function_exists('get_avatar')) { echo get_avatar($comment, '50'); } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment