WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
Display all Authors as a simple list () in the sidebar? (3 posts)

  1. JochenKnochen
    Member
    Posted 5 months ago #

    Hey,
    this must be very easy but i can't find a good solution. I tried this code but the authors-URL-path is not correct (this works maybe on a single.php page):

    <ul>
    <?php $coauthors = get_coauthors(); ?>
    <?php foreach( $coauthors as $coauthor ): ?>
    <li><a href="<?php echo get_author_posts_url( $coauthor->ID ); ?>">
    <?php echo $coauthor->display_name; ?>
    </a></li>
    <?php endforeach; ?>
    </ul>

    All i want it to display an unordered list with ALL authors from my site on every page in the sidebar!

    Thanks and cheers,
    Jochen

    https://wordpress.org/plugins/co-authors-plus/

  2. JochenKnochen
    Member
    Posted 5 months ago #

    …this must be simple... nobody?

  3. webgrade
    Member
    Posted 4 months ago #

    Hi

    Try using 'coauthors_wp_list_authors()'

    It gives you a simple list of all coauthors.

    Best

    Jesper

Reply

You must log in to post.

About this Plugin

About this Topic