October 22, 2017

How to Add Author's Bio in the Post ?

Are you running a Multi-Author Blog or Your WordPress theme doesn’t support addition of author’s bio at the end of article? No worries, now you can add it manually, with a simple code. There are various attributes which you can add in author’s bio, like author’s Gravatar profile image, their name, link to the website and short bio too.

A typical author information section is decorated at the bottom of the post, so we will add our code in the single.php theme file. This aims to display name, link to their website, and will automatically retrieves author’s Gravatar image and short bio.

  • Complete Your Profile

Fill all the required detail in your profile page, like first name, last name, nickname, name to be displayed as, short bio and link to your website. After filling all the details, now we will move further for showing the bio at blog.

Insert this Code in Your CSS file (stylesheet.css in your theme folder)

#main div#author-info {

background: #eaeaec; padding: 10px; margin: 0 0 15px 0;

-moz-border-radius: 8px;

-webkit-border-radius: 8px;

border-radius: 8px;

overflow: auto;


#main div#author-info div#author-image {

float: left; margin: 0 10px 5px 0; border: 5px solid #DCDCE1;


Add PHP Code in Single.php file (Mostly this code is added after this

Download the PHP Code From This File : PHP File
For adding more functionality various different codes can be added. Here are those which we have used above:
php the_author_meta('user_url'); ?>

The “the_author_meta()” template tag can be used to pull various information about the user, but in this case it is used to find author’s URL.

php echo get_avatar( get_the_author_meta('user_email'), '80', '' ); ?>

The “get_avatar()” tag is used to grab the author’s Gravatar and the email function is used to fetch the email because Gravatar varies according to email address registered at Gravatar.com

php the_author_link(); ?>

The “the_author_link()” tag is used to simply drop the author’s name and link the address of website with it.

php the_author_meta('description'); ?>

At last but not the least, the “the_author_meta()” tag is used one more time, but this time it is used to fetch authors description, also know as biography information.

More Snippets you can add to show more information about author. For example:

Display all posts by author

See all posts by  php the_author_posts_link(); ?>

This code will display all the posts by specific author.

Display the Post Count of Author

php the_author(); ?> has written  posts on

It will display the number count of posts written by particular author. It can be beneficial in case of multi-author blog.

Hope you liked the article? Facing any problem? Do let us know.

About Rajan Balana

I am Rajan Balana, A Blogger from Rajasthan. I love playing PS2 and enjoy blogging.


  1. its so adorable to have on my screen that how can we add short bio to the blog i thought its much difficult or long procdure but i think its too easy to be done.

  2. Does not work för me:-(

  3. Doesn´t work on my own author bio…

  4. Hello Zemira,

    Thank you for leaving the comment. I am sorry for the inconvenience. Can you please share, what problem are you facing while implementing the author bio.

    Looking forward for your reply.

Speak Your Mind