[Resolved] 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
- Name (display name)
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 use
coauthors_posts();– which will always show author 1 and author 2.
Has anyone an idea or suggestion?
- The topic ‘[Resolved] How to display single Co-Authors?’ is closed to new replies.