Title: Gravatar plugin vs. core code?
Last modified: August 19, 2016

---

# Gravatar plugin vs. core code?

 *  Resolved [metrocake](https://wordpress.org/support/users/metrocake/)
 * (@metrocake)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/gravatar-plugin-vs-core-code/)
 * Hi, all!
 * I’m using WordPress 2.6, and I’ve installed a theme that uses the Gravatar plugin.
   Unfortunately, all of the Gravatars displaying on the blog’s comments seem stuck
   on the default “G” icon, rather than the “Identicon” default option I’d prefer.
 * When I view the comments off the WP dashboard, the default Gravatars display 
   as intended.
 * Is there any chance the plugin is clashing somehow with the core code? The theme’s
   using the WP plugin from the gravatar.com site. Would it be better if I turned
   that off and implemented the code from [this solution instead?](http://wordpress.org/support/topic/164383?replies=4)
 * Thanks for your help!
 * (Edited to add: my site’s at [http://www.metrocake.com](http://www.metrocake.com).)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [metrocake](https://wordpress.org/support/users/metrocake/)
 * (@metrocake)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/gravatar-plugin-vs-core-code/#post-843935)
 * Hey, that seemed to do the trick. 🙂
 *  [maxy](https://wordpress.org/support/users/maxy/)
 * (@maxy)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/gravatar-plugin-vs-core-code/#post-844343)
 * Hi there,
 * I have the following code in my single.php
 * Its supposed to pull the Gravatar for the relevant author who has written the
   post and display their name as well within each single post. Similar code is 
   within my comments.php and this works fine.
 * I can’t understand what I am missing – I’m no expert!
 * Thanks in advance –
 * [http://www.joecrogan.com](http://www.joecrogan.com)
 * </div><!–/post–>
 * <?php if (get_option(‘woo_author’) != “”) { ?>
 * <div class=”author_info”>
    <h3>This post was written by:</h3>
 * <?php
    // Determine which gravatar to use for the user $email = get_the_author_email();
   $grav_url = “[http://www.gravatar.com/avatar.php?gravatar_id=&#8221](http://www.gravatar.com/avatar.php?gravatar_id=&#8221);.
   md5($email). “&default=”.urlencode($GLOBALS[‘defaultgravatar’] ).”&size=48″; 
   $usegravatar = get_option(‘woo_gravatar’); ?>
 * <?php if ( $usegravatar ) { ?><span class=”author_photo”><img src=”<?php echo
   $grav_url; ?>” width=”48″ height=”48″ alt=”” /></span><?php } ?>
    <p><?php the_author_posts_link();?
   > – who has written <?php the_author_posts(); ?> posts on /”><?php bloginfo(‘
   name’); ?>.</p> <p><?php the_author_description(); ?> <br style=”clear:both;”/
   ></p> <p class=”author_email”>”>Contact the author</p> </div>
 * <?php } ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Gravatar plugin vs. core code?’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [maxy](https://wordpress.org/support/users/maxy/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/gravatar-plugin-vs-core-code/#post-844343)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
