WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
Coauthor description? (2 posts)

  1. jrh001
    Member
    Posted 3 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?

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Mohammad Jangda
    Member
    Plugin Author

    Posted 3 years ago #

    You can try something like:

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic