WordPress.org

Ready to get started?Download WordPress

Forums

Author avatar missing (1 post)

  1. ooklathemok
    Member
    Posted 4 years ago #

    I am trying to make an Author page for our authors. After following the instructions & documentation here I have everything all set except that the wrong picture is showing for the authors.

    Currently the page is pulling the generic or default avatar when I use the following code:
    <?php echo get_avatar(get_the_author_meta('user_email', $id), '96'); ?>

    When I view source in my browser I see-

    <img alt='' src='http://www.gravatar.com/avatar/?d=monsterid&s=96' class='avatar avatar-96 photo avatar-default' height='96' width='96' />

    When I view source in my browser for the users.php in the admin panel (where the correct avatars are showing up) I see-

    <img alt='' src='http://www.gravatar.com/avatar/d17865946e37936125f3dfc4a297e74d?s=32&d=monsterid&r=R' class='avatar avatar-32 photo' height='32' width='32' />

    Obviously, something is amiss because my code above is not pulling in the actual avatar location. Any help would be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags