• Resolved fhewitt

    (@fhewitt)


    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) ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter fhewitt

    (@fhewitt)

    Thanks.

    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: ?>

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Authors list in sidebar’ is closed to new replies.