Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I just want to add author gravatar near the name of the author. I know that I have to add something in the single.php file, but what to add? Thanks!

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

If you're in the Loop:

echo get_avatar( get_the_author_meta('ID') );

share|improve this answer
    
It worked just fine! –  user385917 Aug 10 '11 at 17:20
add comment

Plenty of info on WP Codex on Gravatar's.

use: get_avatar( "id of author" );

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.