Co-Authors Plus
Coauthor description? (2 posts)

  1. Jeremy Hammond
    Posted 5 years ago #

    I've been able to add the coauthor template so the byline names both, like:

    by Author1 and Author2

    But I'm not able to figure out how to add the second author's bio information below the article. Is there a way to use the plugin to add a coauthor's description? The equivalent of the "<?php the_author_description(); ?>"? So that both authors bios can appear?


  2. Mohammad Jangda
    Plugin Author

    Posted 5 years ago #

    You can try something like:

    $coauthors = get_coauthors();
    <div class="author-bios">
    <?php foreach( $coauthors as $coauthor ) : ?>
            <strong><?php echo $coauthor->display_name ?>:</strong>
            <?php echo $coauthor->description; ?>
    <?php endforeach; ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Co-Authors Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic