Forums

gravatars (3 posts)

  1. ZGJ
    Member
    Posted 1 year ago #

    Does wordpress 2.6 support gravatars or do I need a plugin/widget for that?

  2. ikirudesign
    Member
    Posted 1 year ago #

    It supports them out-of-the-box. So did 2.5.

    You can find out more here. And don't be afraid to ask your question of the box in the upper right corner before you take it to the real people.

  3. bluebird2
    Member
    Posted 11 months ago #

    It should work with this code:

    <?php echo get_avatar( get_the_author_email(), '80' ); ?>

    But for some reason this code works on some of the websites I have worked on, but does not work on others. I couldn't figure out what causes this.

    Here is an example. This author.php page does not show the author's gravatar:
    http://thepublicsphere.com/author/sourena/

    The same code in an almost identical page shows the same user's gravatar:
    http://alefba.us/author/hadi/

    And this is the code I have used in both pages:

    <p>
    <div class="author_gavatar">
    <?php echo get_avatar( get_the_author_email(), '80' ); ?>
    </div>
    <?php echo $curauth->user_description; ?></p>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.