• Hi, I’m trying to use this plugin, but i can’t get the avatar image from the other author, the image of the second author is the same at the first.

    This is the code:

    <?php $coauthors = get_coauthors(); ?>
                <?php foreach( $coauthors as $coauthor ): ?>
                <?php $userdata = get_userdata( $coauthor->ID ); ?>
                <div class="col mobile-12 tablet-6">
                <figure class="col mobile-2 no-padding author-avatar">
                <?php if ( $userdata->display_user_email ) echo $userdata->display_user_email; ?>
                        <?php
                        $author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
                        echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
                        ?>
                </figure>
                <div class="col mobile-10 author-description">
                    <h4 class="no-margin author-title"><?php if ( $userdata->display_name ) echo $userdata->display_name; ?></h4>
                    <p class="no-margin font-size-small author-description"><?php if ( $userdata->user_description ) echo $userdata->user_description; ?></p>
                </div>
                </div>
                <?php endforeach; ?>

    View image Example:
    https://cl.ly/image/3a3W1K1W3d0M

    https://www.ads-software.com/plugins/co-authors-plus/

  • The topic ‘How to get individual Avatar images’ is closed to new replies.