The MU forums have moved to WordPress.org

Gravatars don't show up (5 posts)

  1. BrunoAmaral
    Member
    Posted 15 years ago #

    This was after Migrating a wp-standalone to WP-mu (users and posts).

    Not only that, when I try to switch to identicons instead of the misteryman avatar, the settings revert back to default.

    Doesn't WPMU come with gravatar support built in?

  2. dsader
    Member
    Posted 15 years ago #

    Yes, after you fix a typo in wp-admin/options.php.

    Find $whitelist_options and add 'avatar_default' to the array of discussion options.

  3. BrunoAmaral
    Member
    Posted 15 years ago #

    thank you dsader, that helped regain control over the settings. But the gravatars still don't show up. As if the function isn't present.

    In what file should this function be?

  4. BrunoAmaral
    Member
    Posted 15 years ago #

    ok, forget about that. The theme I was using still had the function gravatar(); listed.

    thank you for helping me out. :)

  5. dsader
    Member
    Posted 15 years ago #

    No problem, in your template (comments.php, typically) add somewhere nice:

    <?php
       echo get_avatar( $id_or_email, $size = '96', $default = '<path_to_url>' );
       ?>

    Codex explains more: get_avatar

About this Topic

  • Started 15 years ago by BrunoAmaral
  • Latest reply from dsader