Multiple Authors displayed with Co-Authors Plus

rob_st Oct 24th, 2013 699 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!