How To Add Gravatars For The Post Author in WordPress

11:10:00 1 Comments A+ a-

If you like to add gravatars for the post author then its very simple to do because wordpress has already give this feature.
How about adding them to your post titles to highlight the comment author? Within the loop?
Here’s the code:

get_the_author_email outputs the post author’s email and the “80” is the size of the avatar image in pixels (you can change that). How this will look depends on how you use it; where you put it in the theme (it has to be in the loop!) and how you style it.

referenced form http://themeshaper.com/2008/04/26/how-to-add-gravatars-for-the-post-author-in-wordpress/

1 comments:

Write comments
Unknown
AUTHOR
14 October 2015 at 06:01 delete

Its Best post for me..i got one of the method for promote the website backlink thank you for sharing the greet information....Wordpress Web Design Company Bangalore | Wordpress Website Development Company Bangalore

Reply
avatar