Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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:
    https://thepublicsphere.com/author/sourena/

    The same code in an almost identical page shows the same user’s gravatar:
    https://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>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘gravatars’ is closed to new replies.