• Im using the Co-Authors Plus plug in as my site has one admin(me) that posts all content under different ‘guest’ author names. I cannot, for the life of me, get this simple tast to work. I need my authors (in my case “Experts”) page to display all ‘co-authors’ name, avatar and bio. I can only get a list of co-authors to display, all other attempts still out the admin user/author which should never be displayed.

    This returns the co-authors in a list – and only their names:

    <?php coauthors_wp_list_authors(); ?>
    This code outputs what I need, however it is for the admin author and not the co-authors.

    <?php
        global $post;
        $author_id=$post->post_author;
        foreach( get_coauthors() as $coauthor ): ?>
        <div class="entry-author co-author">
            <?php echo get_avatar( $coauthor->user_email, '96' ); ?>
            <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>
            <p class="author-bio"><?php echo $coauthor->description; ?></p>
            <div class="clear"></div>
        </div><!-- .entry-author co-author -->
        <?php endforeach; ?>

    How can I get this to output the same data, but for the co-author?

  • The topic ‘Show all Co-Authors’ is closed to new replies.