Advertisement
rob_st

Multiple Authors displayed with Co-Authors Plus

Oct 24th, 2013
770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. global $post;
  2.         $author_id=$post->post_author;
  3.         foreach( get_coauthors() as $coauthor ): ?>
  4.             <div class="entry-author co-author">
  5.                 <?php echo get_avatar( $coauthor->user_email, '96' ); ?>
  6.                 <h3 class="author vcard"><span class="fn"><a href="<?php echo get_author_posts_url( $coauthor->ID, $coauthor->user_nicename ); ?>"><?php echo $coauthor->display_name; ?></a></span></h3>
  7.                 <p class="author-bio"><?php echo $coauthor->description; ?></p>
  8.                 <div class="clear"></div>
  9.             </div><!-- .entry-author co-author -->
  10.         <?php endforeach;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement