Support » Plugin: Co-Authors Plus » Displaying Featured Image for Author instead of Gravatar
2 years, 9 months 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 ) : ?>
<?php echo get_the_post_thumbnail($coauthor->ID, 'thumbnail'); ?>
<h5><?php echo $coauthor->display_name; ?></h5>
<p><?php echo $coauthor->description; ?></p>
<?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.
What’s the best way to do this with Genesis?