3

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!

3

If you're in the Loop:

echo get_avatar( get_the_author_meta('ID') );

| improve this answer | |
  • It worked just fine! – user385917 Aug 10 '11 at 17:20
3

Plenty of info on WP Codex on Gravatar's.

use: get_avatar( "id of author" );

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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