WordPress Hack – How To Insert Author Bio In Every Post

wordpress-logo

Do you want to “Insert Author BIO in WordPress Post“? It is not so complex it is rather simple. Most often blogger want to share their BIO with their blog readers. I think It is best way to interact with new blog visitors / readers. This function is added in some WordPress themes by default, if this function is not available in your WordPress theme, then you can add it yourself. In order to add, open your theme folder and find file “Function.php”  open it in your favorite text editor copy code given below and past it in Function.php then save it.
[php]function get_author_bio ($content=”){
global $post;

$post_author_name=get_the_author_meta("display_name");
$post_author_description=get_the_author_meta("description");
$html="<div class=’clearfix’ id=’about_author’>n";
$html.="<img width=’80′ height=’80′ class=’avatar’
src=’http://www.gravatar.com/avatar.php?gravatar_id=".md5
(get_the_author_email()).
"&default=".urlencode($GLOBALS['defaultgravatar']).
"&size=80&r=PG’ alt=’PG’/>n";
$html.="<div class=’author_text’>n";
$html.="<h4>Author: <span>".$post_author_name."</span></h4>n";
$html.= $post_author_description."n";
$html.="</div>n";
$html.="<div class=’clear’></div>n";
$content .= $html;

return $content;
}

add_filter(‘the_content’, ‘get_author_bio’);[/php]
After saving all setting reload you web page to check effects of this
technique.

  1. Praveen Reply
    Awesome !!! It works Fine....
  2. Name (required) Reply
    Its working as mentioned.Thanks for sharing this.
  3. Laparoscopic Surgery : Reply
    i just wish that mp3 players could also have some 10 band equalizers and bass boost functions;"'
  4. Varicose Veins Treatment Reply
    those generic mp3 players that are made in china are really cheap but i still prefer to use my ipod ~*,
  5. Lisa Neal Reply
    Reading a few of the comments on this blog, Id have to say To be sure using the majority.
  6. Barbra, Bio Writer Reply
    This is a great tip, thank you!
  7. George Dover Reply
    Instead of adding the entire bio to the post can't we just add the author name which then links to the bio area that you enter when setting up wordpress?

Leave a Reply

*

captcha *