Adding Author Bio or Author info. to a post always is a plus point in the multi-author and single author blogs. Showing this kind of detail at the end of every post will make you visitors know more about you and help them to be in contact with you.
I have been looking around for a way to put the Author Bio information at the end of the every post. I was searching for the plugins but couldn’t able to find the plugin after some random search. I am sure there will be a plugin to do this.
So I looked for a work around for this, a hack basically. I found this hack to be really simple. You can Add the Author Info. and the Gravatar with this hack.
These are some steps to follow:
- Under the Users section go to Your Profile Users>>Your Profile.
- Having done that add the Some info. about the author and update.
- Now go to the Theme Editor and open Single.php
- Now we will be adding some thing to the Wp core, look for something like this
<?php the_content('Read the rest of this entry »'); ?> in the code. - After this line wherever you want to place the authors info place this code <div><?php echo get_avatar(get_the_author_email(),’64′); the_author_description(); ?> </div>, make sure this code is before this line that looks like this <p><?php _e(“Sorry, but you are looking for something that isn’t here.”); ?></p>
- Doing that save it.
- Now to add some formatting to this add the below mentioned style to style.css page.
- Save this file and you are done.
.postauthor {
color: #222222;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: normal;
background: #EAEAEA;
border-top: 2px solid #000000;
border-bottom: 1px solid #000000;
width: 640px;
padding: 3px;
margin-bottom:5px;
}
See the end of this blog post to see this hack in @work. Do tell me about a plugin if it exists if you find some.
Popularity: 1% [?]

