Hi, and thanks for your response!
Yes, it's regarding the same issue, I'm sorry for opening a new thread but the last post wasn't 100% accurate :)
Okay, so basically when you usually add an avatar you use the get_avatar() tag, but since i use the plugin UserPhoto which allows me to upload an avatar in the admin menu for each author i'm using this code to generate an avatar in the post:
<?php userphoto_the_author_thumbnail() ?>
So I'm not 100 sure about this code, but i added an echo for the avatar like this:
if ( class_exists( 'coauthors_plus' ) ) {
$co_authors = get_coauthors();
foreach ( $co_authors as $key => $co_author ) {
$co_author_classes = array(
'co-author-wrap',
'co-author-number-' . ( $key + 1 ),
);
echo '<div class="' . implode( ' ', $co_author_classes ) . '">';
echo '<h4 class="co-author-display-name">' . $co_author->display_name . '</h4>';
echo '<?php userphoto_the_author_thumbnail() ?>';
// Only print the description if the description exists
if ( $description = get_the_author_meta( 'description', $co_author->ID ) )
echo '<p class="co-author-bio">' . $description . '</p>';
echo '</div>';
}
}
Would that be correct?
Before this implementation my code looked like this:
<div class="byline">
<p class="mypic"><?php userphoto_the_author_thumbnail() ?></p><p class="bylinetxt">Text: <?php the_author_posts_link(); ?></br>Published: <?php the_time('l, F j, Y') ?></p>
</div>
Thank you so much!