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!
2 Answers
If you're in the Loop:
echo get_avatar( get_the_author_meta('ID') );
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityIf you're in the Loop:
echo get_avatar( get_the_author_meta('ID') );