Skip to content

Instantly share code, notes, and snippets.

@danielbachhuber
Created June 3, 2012 21:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save danielbachhuber/2865113 to your computer and use it in GitHub Desktop.
Co-Authors Plus bio presentation question from the WordPress.org forums
<?php
/**
* Co-Authors Plus bio presentation question from the WordPress.org forums
* Untested code for demonstration purposes
*
* @see http://wordpress.org/support/topic/plugin-co-authors-plus-create-a-separate-co-author-section
*/
function capx_display_coauthor_bios() {
$coauthors = get_coauthors();
foreach( $coauthors as $key => $coauthor ) {
echo '<div class="dash"></div>';
if ( $key == 0 )
echo '<h3>About the Illustrator</h3>';
else
echo '<h3>About the Contributor</h3>';
echo '<div class="author">';
echo get_avatar( $coauthor->user_email, '80' );
echo '<p>' . get_userdata( $coauthor->ID )->user_description . '</p>';
echo '</div>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment