Support » Plugin: Co-Authors Plus » Display all Authors as a simple list () in the sidebar?

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display all Authors as a simple list () in the sidebar?’ is closed to new replies.