Want more features on Pastebin? Sign Up, it's FREE!

Multiple Authors displayed with Co-Authors Plus

By: rob_st on Oct 24th, 2013  |  syntax: PHP  |  size: 0.54 KB  |  views: 357  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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;
clone this paste RAW Paste Data