wordpress tutorial, how to show author in wordpress post. Many people want to read the author information after the article. This is good for seo also.
how to show author in wordpress post
You can show the author information in single page using following code. just open your single.php file and put following code after the the_content() function.
<div id="author-information"> <div id="author-image"> <a href="<?php the_author_meta('user_url'); ?>"> <?php echo get_avatar( get_the_author_meta('user_email'), '150', '' ); ?></a></div> <div id="author-bio"> <h4>Written by < ?php the_author_link(); ?></h4> < ?php the_author_meta('description'); ?> </div> </div> <!--Author information-->
Use following code in your css file
#author-information{float:left;width:auto;clear:both;} #author-image{border:3px solid #CCC; float:left:width:160px;} #author-bio{padding:5px;float:left;}