Title: gravatar display code issue
Last modified: August 18, 2016

---

# gravatar display code issue

 *  [richards1052](https://wordpress.org/support/users/richards1052/)
 * (@richards1052)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/gravatar-display-code-issue/)
 * I’ve just registered for a gravtar & can’t figure out how to make it work. Here’s
   my gravatar url:
 * [http://www.gravatar.com/avatar.php?gravatar_id=aa2859f2616c9fb536509ebc0b6c3529&#8243](http://www.gravatar.com/avatar.php?gravatar_id=aa2859f2616c9fb536509ebc0b6c3529&#8243);
 * If I understood the directions, you have to insert this within the comment box:
 * `<img src="<?php gravatar() ?/> alt="" />`
 * So how should the entire code look when placed within the box? I’ve tried a few
   configurations in my own blog comment box & nothing’s worked.

Viewing 3 replies - 16 through 18 (of 18 total)

[←](https://wordpress.org/support/topic/gravatar-display-code-issue/?output_format=md)
[1](https://wordpress.org/support/topic/gravatar-display-code-issue/?output_format=md)
2

 *  [Marc](https://wordpress.org/support/users/marc/)
 * (@marc)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/gravatar-display-code-issue/page/2/#post-223752)
 * Again, this is the exact code from my blog with the same theme that should be
   entered. If that is resulting in all your gravs displaying your default image
   the problem is somewhere else and not with this code. Hint, or not: If an Email
   addy is not entered on a comment it will display your default grav even if the
   individual hs a grav of their own.
 * `<img src="<?php gravatar("R", 38, "http://cranialcavity.net/fullthrottle/wp/
   wp-images/flag-grav.gif", `
 * "000000"); ?>" alt="" /></div>
 *  Thread Starter [richards1052](https://wordpress.org/support/users/richards1052/)
 * (@richards1052)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/gravatar-display-code-issue/page/2/#post-223753)
 * Yes, I purposely tried to enter the code precisely as you had it since it’s working
   for you–I figured that’d mean it’d work for me. But clearly there’s something
   diff. bet. my WP installation & yours.
 * As for comments with or w/o e mail addresses…this comment by a visitor HAS an
   e mail address but is still displaying my grav: [http://www.richardsilverstein.com/tikun_olam/2005/06/typepad-to-wordpress-blog-conversion/#comment-841](http://www.richardsilverstein.com/tikun_olam/2005/06/typepad-to-wordpress-blog-conversion/#comment-841)
 * If I can’t fix this I’ll prob. go back to linking to the gravatar.com link.
 *  Thread Starter [richards1052](https://wordpress.org/support/users/richards1052/)
 * (@richards1052)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/gravatar-display-code-issue/page/2/#post-223760)
 * I went back to using the gravatar hosted image & it fixed the problem.

Viewing 3 replies - 16 through 18 (of 18 total)

[←](https://wordpress.org/support/topic/gravatar-display-code-issue/?output_format=md)
[1](https://wordpress.org/support/topic/gravatar-display-code-issue/?output_format=md)
2

The topic ‘gravatar display code issue’ is closed to new replies.

## Tags

 * [img](https://wordpress.org/support/topic-tag/img/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 18 replies
 * 5 participants
 * Last reply from: [richards1052](https://wordpress.org/support/users/richards1052/)
 * Last activity: [20 years, 10 months ago](https://wordpress.org/support/topic/gravatar-display-code-issue/page/2/#post-223760)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
