Co-Authors Plus
Displaying Featured Image for Author instead of Gravatar (2 posts)

  1. askwpgirl
    Posted 2 years ago #

    Below is code I am using for displaying the authors' featured image instead of the gravatar along with their name and bio on the single post:

    <?php foreach( get_coauthors() as $coauthor ) : ?>
    	<div class="authorinfo">
    		<?php echo get_the_post_thumbnail($coauthor->ID, 'thumbnail'); ?>
    		<h5><?php echo $coauthor->display_name; ?></h5>
    		<p><?php echo $coauthor->description; ?></p>
    		<div class="clear"></div>
    <?php endforeach; ?>

    This code works on the single.php template (actually the content.php template for my theme). I hope this helps those who have been struggling with how to display the author Featured Image.


  2. Dan Knauss
    Posted 2 years ago #

    What's the best way to do this with Genesis?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic