Skip to content

Instantly share code, notes, and snippets.

@jfeliweb
Created January 30, 2015 03:09
Show Gist options
  • Select an option

  • Save jfeliweb/42c1403fa67a0894958f to your computer and use it in GitHub Desktop.

Select an option

Save jfeliweb/42c1403fa67a0894958f to your computer and use it in GitHub Desktop.
ADD GRAVATARS FOR THE POST AUTHOR
/*****
Pretty simple, huh? 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.
*****/
<?php echo get_avatar( get_the_author_email(), '80' ); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment