Title: pajohns's Replies | WordPress.org

---

# pajohns

  [  ](https://wordpress.org/support/users/pajohns/)

 *   [Profile](https://wordpress.org/support/users/pajohns/)
 *   [Topics Started](https://wordpress.org/support/users/pajohns/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pajohns/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pajohns/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pajohns/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pajohns/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pajohns/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problems with get_avatar()](https://wordpress.org/support/topic/problems-with-get_avatar/)
 *  Thread Starter [pajohns](https://wordpress.org/support/users/pajohns/)
 * (@pajohns)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problems-with-get_avatar/#post-7148168)
 * Hi Jejani,
 * I’m not using a premium theme – made it myself, so pretty basic functionality.
   Apart from styling your div with the gravatar as a bkg image the way you’ve done
   it is similar to how I ended up getting it to work. The code I used is:
 *     ```
       <?php $authorHash = md5(get_the_author_email());
       $authorHash = trim($authorHash);?>
       <div class="post-thumb mb-0"><img class="img-thumbnail" src="http://www.gravatar.com/avatar/<?php echo $authorHash; ?>?s=128" width="128" height="128" /></div>
       ```
   
 * I’ll incorporate styling the div background, however what I’m wondering is why
   we can’t use the get_avatar function that wordpress provides. I mean it does 
   work, but the quality is terrible!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [HELP – My site has been hacked!!](https://wordpress.org/support/topic/help-my-site-has-been-hacked-2/)
 *  Thread Starter [pajohns](https://wordpress.org/support/users/pajohns/)
 * (@pajohns)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/help-my-site-has-been-hacked-2/#post-2380148)
 * Oh the site is [http://www.vulvodynia.com.au](http://www.vulvodynia.com.au)
 * PJ

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