Add gravatar to author list

Basic setup <?php $args = array( ‘orderby’ => ‘nicename’ ); $users = get_users( $args ); foreach ( $users as $user ) { $avatar = get_avatar( $user->ID, ’80’ ); echo ‘<li><a href=”‘ . $user->user_url . ‘”>’ . $avatar . ‘<br />’ . $user->display_name . ‘</a></li>’; } ?> Excluding the Admin User Either check in the foreach: … Read more

Wrong gravatar showing up?

If you go to http://gravatar.com/d6b10d5767d1e29006c11e1a2c590f3c (omit the /avatar/ from path) you get http://gravatar.com/clojita which seems to be your gravatar account, correct? MD5 collision is unlikely (but maybe it’s time to buy a lottery ticket 🙂 Look at source fetches interesting detail — the comment in question has comment-author-clark class. So it’s not only the gravatar … Read more