Posted By

depiction on 03/26/11


Tagged

wordpress loop author archives avatar outside


Versions (?)

Display Author Avatar and Bio - WordPress Author Archive


 / Published in: PHP
 

  1. <?php
  2. $curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
  3. ?>
  4.  
  5. <?php echo get_avatar( $curauth->user_email, '68' ); ?>
  6.  
  7. <strong>About the Author:</strong> <?php the_author_posts_link(); ?><br />
  8. <p><?php echo $curauth->description; ?></p>

Report this snippet  

You need to login to post a comment.