Do you want to display the Author Avatar (Gravatar) within Posts or Pages with by using one line of code?
Then you came to the right place.
Here:
We have posted the simple code snippets that will help you to easily display author avatar on any posts or pages.
Just follow the below steps:
Display Author Avatar in WordPress
To display post/page author avatar, you just need to copy the below code and paste it within your single.php (Posts) file or page.php file (Pages).
After that:
Save the file and see the result.
Code for WordPress: Get Author Avatar
That’s it.
Read also: Change Default Comment Gravatar, Display Gravatar as Favicon
Hope, You successfully get the Author Avatar image.
Don’t forget to share this Display Author Avatar without Plugin.