How To Add Gravatars For The Post Author in WordPress

32 Comments

  1. Posted April 27, 2008 at 9:19 pm | Permalink

    That’s pretty cool Ian. I enjoying reading your WordPress tips and your new Amazon bookstore looks cool. I gotta find some time to read your creative thinking recommendations.

  2. Posted April 28, 2008 at 5:14 am | Permalink

    Thanks, Jason. That reminds me: I forgot Thomas Kuhn.

  3. Posted April 29, 2008 at 1:56 pm | Permalink

    Cool! I love the idea. I’ve seen some sites with the author’s avatar right after the post but isn’t this gravatar thing more applicable in a multi-user blog?

  4. Posted April 29, 2008 at 2:04 pm | Permalink

    Totally. I wouldn’t recommend using it unless you’re on a multi-user blog.

  5. Posted April 30, 2008 at 1:35 am | Permalink

    might have to use this then as it would be handy especially for my website.
    Thanks

  6. Posted May 8, 2008 at 3:27 pm | Permalink

    You’re totally talking about my latest theme. I implemented this technique in WPFreemium but instead of using the author’s email, I used their ID e.g. “the_author_ID();”.
    It took me hours trying to find out how this worked at first since I couldn’t find any documentation in the codex I had to dig into the core files.

  7. Posted May 8, 2008 at 4:48 pm | Permalink

    The theme you’ve come up with is a great example what I’ve outlined, Ptah. Very cool.

    And it’s totally frustrating when you know, in theory, you can do something and quickly realize you’re going to have to figure out how to do it yourself. Except of course when you figure it out. Then, well, that’s awesome. :)

  8. mark
    Posted May 9, 2008 at 10:05 am | Permalink

    hai ian, can you point which specific place to put the code, because i have not found where the loop is? in comment.php, single.php or where?

  9. Posted May 9, 2008 at 10:24 am | Permalink

    That would be The Loop.

  10. Posted June 18, 2008 at 6:19 am | Permalink

    I still don’t understand exactly where i’m supposed to place the code. Where should i put it if i want it to look like in the picture? could you please show me?

  11. Posted June 18, 2008 at 6:49 am | Permalink

    Where you put the code, Thomas, depends on the theme you’re using (remembering it has to be in The Loop) and how you style it, or position it, using CSS. Give it a try. It’s kinda fun.

  12. Posted June 18, 2008 at 7:03 am | Permalink

    Ok thanks for the quick reply

    I really don’t know much CSS, but i just discovered that the theme i use, apparently has a single php file for most of the loop stuff… Im going to try to mess around with that, ive managed to do a lot by trial and error before…

    By the way do you have any idea how i can find the part of the code that shapes the post headline area? like specific terms to search for or something. I also need to change the color of the headlines themselves, but thats probaly somewhere else…

  13. Posted July 2, 2008 at 12:04 am | Permalink

    Hey, how u did put the align=”right” only to the gravatar image?
    can u put me the code u did use to get that exact style?

  14. Posted July 8, 2008 at 3:29 am | Permalink

    Koooooool… Preety simple. I will try the same. Thx.

  15. Posted October 7, 2008 at 1:19 pm | Permalink

    thank you so much for this. I really was looking for that!

  16. Posted October 11, 2008 at 7:43 pm | Permalink

    That’s awesome! I’ve always wanted to add my Gravatar next to my posts. This just topped it all up. Thanks!

  17. Brent
    Posted October 17, 2008 at 8:32 pm | Permalink

    Thanks for the info

  18. Posted November 9, 2008 at 7:57 am | Permalink

    Thanks for the great help

  19. Posted November 12, 2008 at 10:26 pm | Permalink

    That really interesting. With a simple 1 line script you can get amazing result. Love it.

  20. Michael
    Posted November 29, 2008 at 6:30 am | Permalink

    Good article, thanks.

  21. Posted December 18, 2008 at 12:31 pm | Permalink

    For some reason this code works on some of the websites I have worked on, but does not work on others. What cane be the reason?

    Here is an example. This author.php page does not show the author’s gravatar:
    http://thepublicsphere.com/author/sourena/

    The same code in an almost identical page shows the same user’s gravatar:
    http://alefba.us/author/hadi/

  22. Posted March 11, 2009 at 4:52 pm | Permalink

    Thank you so much Ian Stewart, it’s a pretty useful this information.

  23. Posted March 21, 2009 at 8:14 am | Permalink

    Thanks for the help. I’m new at learning to use Gravatars and I appreciate your insight

  24. WordPress Follower
    Posted September 10, 2009 at 6:23 pm | Permalink

    this tutorial simple but very useful
    thanks :mrgreen:

    5 stars

  25. Posted September 14, 2009 at 11:03 am | Permalink

    Thank you very much for this useful information.
    I created a plugin recently to display “about the author” box above the posts and I used gravatar in it.
    Thanks again and take a look at the plugin.

  26. martin
    Posted September 30, 2009 at 3:57 pm | Permalink

    ian — but where do I put my email so gravatar can identify the user?

  27. Posted October 2, 2009 at 12:03 pm | Permalink

    Thanks, Jason.

  28. Posted October 12, 2009 at 7:50 pm | Permalink

    Hi i just put the code into the single.php archive from my theme. I put it in the code of the title at the beggining of the title and reduced the size from 80 to 50 and now it looks great.

    A great simple code!!

    Thanks

  29. Posted October 15, 2009 at 8:49 am | Permalink

    Very cool! Implemented it in about 2 seconds, using a float right. Thanks!

  30. Posted October 25, 2009 at 2:09 pm | Permalink

    There’s already quite a few plugins that do the same thing. But this is a nice tip. You’ll get a nice effect very easily. Thanks for sharing!

  31. Posted November 19, 2009 at 9:41 am | Permalink

    Hello, just want to know where to put that code ….I do not know what’s loop…

  32. Posted December 8, 2009 at 7:33 pm | Permalink

    thanks… i will apply that.. i’ve been looking for some fine tips and here’s the best one..

110 Trackbacks

  1. [...] up Gravatars to display with each individual post?   Over at ThemeShaper, Ian Stewart recently shared an easy way to do this.   You just need the following [...]

  2. By Ultime dal fronte WordPress 18-2008 on April 30, 2008 at 11:46 pm

    [...] mostra come aggiungere i gravatar per mostrare il volto dell’autore di un post, ecome costruire una navigazione tra le pagine di WordPress con Wp-PageNavi, come mostra la figura [...]

  3. By WordPress Weekly News, 18-2008 on April 30, 2008 at 11:50 pm

    [...] shows how to Add Gravatars For The Post Author in WordPress, and How To Build WP-PageNavi Into Your WordPress [...]

  4. [...] wordpress known as SimpleSkin. Made from scratch using Small Potato’s guidelines. Included gravatar support from Themeshaper, and design influences from FreelanceSwitch and again Themeshaper. Free to [...]

  5. [...] ThemeShaper dobta múltkor azt a bejegyzést, ami azt írja le, hogyan lehet ezt a kis identifikáló ikont [...]

  6. [...] to display with each individual post?   Over at ThemeShaper, Ian Stewart recently shared an easy way to do this.   You just need the following [...]

  7. By 40+ Most Wanted Wordpress Tricks and Hacks on June 15, 2008 at 4:52 am

    [...] Add Gravatar for post author [...]

  8. [...] Add Gravatar for post author [...]

  9. By 30个优秀Wordpress技巧 on June 16, 2008 at 7:49 am

    [...] 2、显示作者Gravatar头像 [...]

  10. By 30个优秀Wordpress技巧 | Yansen's Blog on June 16, 2008 at 8:04 am

    [...] 2、显示作者Gravatar头像 [...]

  11. By 30个优秀Wordpress技巧 | 半瓶可乐 on June 16, 2008 at 8:53 am

    [...] 2、显示作者Gravatar头像 [...]

  12. [...] 2、显示作者Gravatar头像 [...]

  13. [...] 2、显示作者Gravatar头像 [...]

  14. [...] 2、显示作者Gravatar头像 [...]

  15. [...] 2.显示作者 Gravatar 头像 [...]

  16. [...] 2、显示作者Gravatar头像 [...]

  17. [...] 2、显示作者Gravatar头像 [...]

  18. [...] Add Gravatar for post author [...]

  19. By Más de 40 consejos y trucos para Wordpress on June 18, 2008 at 8:10 pm

    [...] Agregar Gravatar del autor de cada post, ver cómo. [...]

  20. [...] 2、显示作者Gravatar头像 [...]

  21. [...] Agregar Gravatar del autor de cada post, ver cómo. [...]

  22. By 40 consejos y trucos para Wordpress | aNieto2K on June 23, 2008 at 10:05 am

    [...] Añade gravatar del autor a los posts [...]

  23. [...] Добавляем к постам потрет/аватар автора [...]

  24. By 40 Consejos y trucos para WordPress on June 23, 2008 at 12:28 pm

    [...] Agregar Gravatar del autor de cada post, ver cómo. [...]

  25. By 40 trucos muy buenos para wordpress | Wotevar on June 23, 2008 at 3:41 pm

    [...] |enlace| [...]

  26. [...] 2. Añadir un pequeño avatar del autor del mensaje. [...]

  27. [...] Add Gravatar for post author [...]

  28. [...] Añade gravatar del autor a los posts [...]

  29. [...] Exibir o avatar dos autores dos posts [...]

  30. [...] Agregar Gravatar del autor de cada post, ver cómo. [...]

  31. By vsFish » 30个优秀Wordpress技巧 on July 2, 2008 at 10:45 am

    [...] 2、显示作者Gravatar头像 [...]

  32. [...] Agregar Gravatar del autor de cada post, ver cómo. [...]

  33. By Antibioticos « SoLo Se Que No Se NaDa on July 3, 2008 at 6:09 pm

    [...] Agregar Gravatar del autor de cada post, ver cómo. [...]

  34. [...] 2、显示作者Gravatar头像 [...]

  35. [...] 2、显示作者Gravatar头像 [...]

  36. [...] 2、显示作者Gravatar头像 [...]

  37. [...] 2、显示作者Gravatar头像 [...]

  38. By Trucos y consejos para Wordpress | Seosistems on July 15, 2008 at 6:39 am

    [...] Agregar Gravatar del autor de cada post, ver cómo. [...]

  39. By 谷歌客 » 30个优秀Wordpress技巧 on July 15, 2008 at 7:16 am

    [...] Add Gravatar for post author [...]

  40. [...] Muestra las categorías en modo drop-down [...]

  41. [...] Agregar Gravatar del autor de cada post, ver cómo. [...]

  42. [...] 2. Add Gravatar For Post Author [...]

  43. [...] 本文为Wordpress使用技巧40则系列,应Jiang老大号召翻译。如有错误恳请指正。 原文地址请戳这里 [...]

  44. By T.E.M.P » 30个优秀Wordpress技巧 on August 13, 2008 at 10:47 am

    [...] 2、显示作者Gravatar头像 [...]

  45. [...] 12. Add Gravatar for post author [...]

  46. By Purple Swirl - Free WordPress Theme | Theme Lab on August 18, 2008 at 10:41 am

    [...] like this theme a lot. Not only does this theme have Gravatar-enabled comments, but also Gravatar display for the post author. This theme is also 125×125 ad ready, so feel free to replace the current placeholders with [...]

  47. By WordPress 테마 제작에 필요한 snippet on August 20, 2008 at 12:32 am

    [...] How To Add Gravatars For The Post Author in WordPress (source: [...]

  48. By 30个Wordpress技巧 | 灵度°CLEVER8 on August 21, 2008 at 3:41 am

    [...] 2、显示作者Gravatar头像 [...]

  49. [...] Добавляем граватары для авторов блога [...]

  50. [...] Feed Readers (source: PEARSONIFIED) 11. 4 Simple ways to Speed up WordPress (source: WPCandy) 12. How To Add Gravatars For The Post Author in WordPress (source: ThemeShaper) 13. How to Display recent posts from specific category (source: READWPTHEMES) [...]

  51. [...] Añade gravatar del autor a los posts [...]

  52. By Redbots » 30个有用的Wordpress技巧 on August 25, 2008 at 11:11 am

    [...] 2、显示作者Gravatar头像 [...]

  53. [...] 2. Add Gravatar For Post Author [...]

  54. [...] Add Gravatar for post author [...]

  55. [...] 4) Add Gravatar for post author [...]

  56. [...] 2. Add Gravatar For Post Author [...]

  57. [...] Agregar Gravatar del autor de cada post, ver cómo. [...]

  58. By 30个优秀Wordpress技巧 on October 11, 2008 at 10:49 am

    [...] 2、显示作者Gravatar头像 [...]

  59. [...] Berikut kode untuk menambahkan gravatar di dalam judul post yang aku sarikan dari sini. [...]

  60. By Memasang Gravatar di Wordpress « namaguebima on October 29, 2008 at 3:34 pm

    [...] Berikut kode untuk menambahkan gravatar di dalam judul post yang aku sarikan dari sini. [...]

  61. [...] yazarınızın resminin genişliği oluyor. İstediğiniz gibi değiştirebilirsiniz. Kaynak: ThemeShaper Yazıyı Paylaş: Aşağıdaki simgeler kullanıcılarının web sitelerini paylaştığı ve [...]

  62. [...] From: How To Add Gravatars For The Post Author in WordPress. Четверг, Январь 29th, 2009 at 01:24 by alex Tags: Gravatars, Wordress RSS feed for comments on this post Leave a comment | Trackback « How do I upgrade Apache under FreeBSD? No comments yet. [...]

  63. [...] 2.为评论作者增加Gravatar头像 [...]

  64. By 40+ Most Wanted Wordpress Tricks - o2webdev on February 16, 2009 at 6:46 am

    [...] Add Gravatar for post author [...]

  65. [...] 2.为评论作者增加Gravatar头像允许你日志的评论者在他们的评论旁边展示Gravatar头像,会是个很不错的主意。 [...]

  66. [...] Link to tutorial [...]

  67. [...] 為文章作者增加肖象圖 在文章標題旁增加Gravatar肖象圖,這樣在寫評論時就可用來彰顯你是該文作者 [...]

  68. By BLOG { jörg steinhauer } » Gods of GFX #2 on March 13, 2009 at 2:23 pm
  69. [...] How To Add Gravatars For The Post Author in WordPress Tagged with: Add Gravatars wordpress author [...]

  70. By Wordpress Tips and Tricks | Theme Heven on April 19, 2009 at 5:47 am

    [...] 13. How To Add Gravatars For The Post Author in WordPress [...]

  71. [...] 2.为评论作者增加Gravatar头像 [...]

  72. [...] Add Gravatar for post author [...]

  73. By 250 Wordpress Tutorials on April 30, 2009 at 10:37 am

    [...] 80. Add Gravatar for post author [...]

  74. By 250 Wordpress Tutorials on April 30, 2009 at 10:37 am

    [...] 80. Add Gravatar for post author [...]

  75. By 250 Wordpress Tutorials on April 30, 2009 at 10:37 am

    [...] 80. Add Gravatar for post author [...]

  76. By Daily Digest for May 22nd | Digital Gilbert on May 23, 2009 at 12:23 am

    [...] How To Add Gravatars For The Post Author in WordPress [...]

  77. [...] 2. Gravatarer är en univeriell tjänst på nätet där man genom att regga sig automatiskt kopplar sin e-postadress till en egen visningsbild, något som anväds överallt på nätet. ThemeShaper visar hur du kopplar en gravatarbild till dina blogginlägg. [...]

  78. [...] Add Gravatar for post author [...]

  79. By | Mellowish on July 7, 2009 at 6:26 am

    [...] Add Gravatar for post author [...]

  80. [...] Add Gravatar for post author [...]

  81. [...] 2.为评论作者增加Gravatar头像 [...]

  82. [...] Add Gravatar for post author [...]

  83. [...] Add Gravatar for post author [...]

  84. [...] Add Gravatar for post author [...]

  85. By D.K推荐41个最有用的WordPress技巧 | iOver on September 1, 2009 at 6:31 am

    [...] 2.为评论作者增加Gravatar头像 [...]

  86. [...] Add Gravatar for post author [...]

  87. [...] How to Add Gravatars for the Post Author in Wordpress [...]

  88. [...] yazı sahiplerine gravatar eklemek [...]

  89. [...] yazı sahiplerine gravatar eklemek [...]

  90. [...] Add Gravatar for post author [...]

  91. [...] Add Gravatar for post author [...]

  92. [...] Add Gravatar For Post Author [...]

  93. [...] Add Gravatar for post author [...]

  94. [...] Añade gravatar del autor a los posts [...]

  95. [...] Add Gravatar for post author [...]

  96. [...] Add Gravatar for post author [...]

  97. [...] How to Add Gravatars for the Post Author in Wordpress [...]

  98. [...] How to Add Gravatars for the Post Author in Wordpress [...]

  99. [...] Add Gravatar for post author [...]

  100. [...] Add Gravatar for post author How about adding Gravatar to your post titles to highlight the comment author? [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. In addition, you may find yourself fitter, happier and more productive. Comment away.

Subscribe without commenting