-
-
Save jfeliweb/42c1403fa67a0894958f to your computer and use it in GitHub Desktop.
ADD GRAVATARS FOR THE POST AUTHOR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /***** | |
| 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