WordPress.org

Forums

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

  1. askwpgirl
    Member
    Posted 1 year 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>
    	</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.

    https://wordpress.org/plugins/co-authors-plus/

  2. Dan Knauss
    Member
    Posted 1 year 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