How to show an author’s avatar within WordPress Brad MarkleUpdated on February 23, 2022 1 Minute Read If you’d like to show the author’s avatar within a WordPress post, we’ll show you how in this article. While the functionality is not built into WordPress (version 3.2.1 as of this writing), you can surprisingly accomplish this task with just one line of code. In this article, we’ll update the top part of the post that says “Posted on” so that it shows the author’s avatar. Refer to the screenshots below to see the results. In this article, you will learn how to show an author’s avatar within WordPress. Showing an Author’s Avatar in WordPress Log into your WordPress Dashboard In the left menu, under “Appearance”, click “Editor” On the “Editor” page, find and click “content.php” in the list of files on the right of the page Find this section of code: <?php twentyeleven_posted_on(); ?> … and replace it with this: <? echo get_avatar( get_the_author_meta('user_email'), $size = '50'); ?> <?php twentyeleven_posted_on(); ?> That’s it, you’re done! In this tutorial we placed the author’s avatar at the top of the post (for the homepage). If you’d like show the author’s avatar from anywhere else within the post (or on other pages), simply use the following code: <? echo get_avatar( get_the_author_meta('user_email'), $size = '50'); ?> Congratulations, now you know how to show an author’s avatar within WordPress! Summarize and Research with AIShare on Social Media Related Articles Clean Up WordPress Comment Spam with phpMyAdmin How to Use WP 2FA for WordPress WordPress Ends Support for PHP 5.2-5.5 How to Manage Comments in WordPress Editing Your WordPress wp-config.php File How to Add Portfolios Using Jetpack 3 Mobile Apps for WordPress Content Creators using Apple iOS How to Reset the WordPress .htaccess File How To Install WordPress on Debian 10 Cloud Server Are WordPress Loopback Requests Enabled?