Title: Help with gravatar plugin
Last modified: August 18, 2016

---

# Help with gravatar plugin

 *  [nuclear](https://wordpress.org/support/users/nuclear/)
 * (@nuclear)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/help-with-gravatar-plugin/)
 * I installed the Gravatar plugin, and I don’t know where to put the code for it.
   =/
    I’m using the theme ‘Retrospotive’ and the comments code looks like this:
 * `<li id="comment-<?php comment_ID() ?>" class="<?php echo $commentsAlternate;?
   ><?php if($isByAuthor ) { echo ' authorcomment';} ?>"><cite><?php comment_author_link()?
   ></cite>`
 * <?php comment_text() ?>
 *  <?php edit_comment_link(__("Edit This"), ' |'); ?></small>
 * And the gravatar code is this:
    `<?php foreach ($comments as $comment) : if (
   function_exists('gravatar')) { if ('' != get_comment_author_url()) { echo "comment_author_url'
   title='Visit $comment->comment_author'>"; } else { echo "["; } echo "<img src
   ='"; if ('' == $comment->comment_type) { echo gravatar($comment->comment_author_email);}
   elseif ( ('trackback' == $comment->comment_type) || ('pingback' == $comment->
   comment_type) ) { echo gravatar($comment->comment_author_url); } echo "' alt='
   a gravatar' class='gravatar' />"; } ?>

The topic ‘Help with gravatar plugin’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [nuclear](https://wordpress.org/support/users/nuclear/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/help-with-gravatar-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
