[resolved] Authors list in sidebar (4 posts)

  1. f.hewitt
    Posted 8 years ago #

    This widget certainly already exist, but I just can't find it.

    The blog have many authors. How can I list them in the sidebar, with there avatar (gravatar or local avatar if any) and with a link to there archive page (/author/suzanne/ for example) ?

  2. Samuel B

    Posted 8 years ago #

  3. f.hewitt
    Posted 8 years ago #


    Don't output the avatar, as it's directly use wp_list_authors but it's a good starting point. I've finally choose to rewrite a wp_list_authors_with_avatar that make the job I want.

    Honestly, the need to rewrite a 60 lines function just for add an avatar in a listing (or just because you want the rss icon before the name) look like if the templating system is flawed somewhere. Why not an author loop? Something like:

    <?php if (have_authors()) : while (have_authors()) : the_author(); ?>
      <?php the_author_rss(); the_author_name(); the_author_avatar(); ?>
    <?php endwhile; else: ?>
  4. mogmismo
    Posted 8 years ago #

    Boy, I second that. Having an author loop would be great. Care to share your wp_list_authors_with_avatar ?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.