How to display single Co-Authors?
-
This Plugin is great for adding authors that aren’t registered users to your WordPress blog.
In my articles that do have multiple authors, I would like to show them all with
- Avatar
- Name (display name)
- Bio
I’ve coded so far:
<?php $coauthors = get_coauthors(); foreach( $coauthors as $coauthor ): ?> <div class="entry-author co-author"> <?php /* placeholder avatar */ ?> <h3 class="author vcard"><span class="fn"><?php coauthors_posts_links(); ?></span></h3> <p class="author-bio"><?php get_the_coauthor_meta( 'description' );?></p> <div class="clear"></div> </div><!-- .entry-author co-author --> <?php endforeach;
into my functions.php, the function would be called in the single.php
I don’t figure out how to use single-author functions like
coauthors_posts_links_single();
from the template_tags.php Somehow I can only usecoauthors_posts_links();
andcoauthors_posts();
– which will always show author 1 and author 2.Has anyone an idea or suggestion?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to display single Co-Authors?’ is closed to new replies.