Friday, July 12, 2013

How Display Author Info in WordPress

Add this snippet code into your current page/post template file to display name,bio and picture of author in your wordpress website.

<div class="author-box">
<div class="author-pic"><?php echo get_avatar( get_the_author_email(), '80' ); ?></div>
<div class="author-name"><?php the_author_meta( "display_name" ); ?></div>
<div class="author-bio"><?php the_author_meta( "user_description" ); ?></div>
</div>


Disqus Comments