WordPress

How to Change Gravatar on WordPress Not Working?

Change your Gravatar from gravatar.com, then find why WordPress still shows the old one: email match, rating, caches and plugin overrides, checked 15 Nov 2026.

·15 min read
Three avatar circles with a question mark badge, illustrating a Gravatar that is not updating on WordPress

To change a Gravatar on WordPress, sign in at gravatar.com with the same email address your WordPress account uses, upload a new image, and make it your active avatar. WordPress does not store that picture. It builds an image address from a hash of your email and asks Gravatar for the file on every page view, so the change happens on Gravatar’s side, not in your dashboard. If the old picture keeps showing, the cause is almost always one of five things: the email addresses do not match, the image rating is too high for your site, the avatar is set to hidden, a cache on your side is holding the old file, or a plugin or theme is replacing Gravatar with its own picture. We checked every fact below on 15 November 2026 against Gravatar’s help pages, the WordPress core source and the WordPress.org plugin directory.

The pattern we see on support threads is a person who changed the picture, looked at their own site five minutes later, saw the old one, and assumed Gravatar was broken. Gravatar is rarely the broken part. This guide is built as symptom, check, fix, so you can match what you see on screen to the right cause and stop clicking through settings that do not apply.

Gravatar not updating on WordPress: the quick diagnosis table

Start here. Find the row that matches what you see, run the quick check, then jump to the section with the full fix.

What you see

Most likely cause

Quick check

Old picture everywhere, even in a private window

Gravatar has not served the new file yet, or the new image is not set as current

Open your avatar address directly and look at it (see the first symptom below)

Grey silhouette or generated pattern instead of your photo

Email mismatch, image rating too high, or avatar set to hidden

Compare the email on your WordPress profile with the one on your Gravatar account

Right picture in wp-admin, wrong picture in comments

Comments use the email typed into the comment form, not your account email

Look at the email on the comment itself

You see the new picture, visitors see the old one

A CDN, proxy or avatar-caching plugin holds the old file

Open the page in a private window on a different network

Broken image icon

A security header or firewall blocks the Gravatar host, or the request is blocked in the browser

Open the browser console and look for a blocked request

A different picture than the one on Gravatar

A local avatar plugin, membership plugin or theme overrides Gravatar

List the callbacks on the avatar filters (code further down)

How do I change my Gravatar on WordPress?

Gravatar is a free service run by Automattic, the company behind WordPress.com. You do not change the picture inside WordPress. Your WordPress profile screen only shows the current Gravatar and links out to the service. The steps below follow Gravatar’s own avatars help page.

  1. Check which email address WordPress is using. In the dashboard open Users, then Profile, and read the Email field. That is the address Gravatar will be asked about.
  2. Go to gravatar.com and sign in with an account that has that same email address attached. If the address is not on your Gravatar account yet, add and verify it first, because the picture belongs to the address, not to the site.
  3. Open the avatars section of your profile editor and upload an image. Gravatar lets you keep as many images as you like, and only the one you pick as current is served.
  4. Click the image you want so it shows the selected border. Every image carries a rating, and by default an image is general-rated and can show anywhere.
  5. Wait a few minutes, then reload your site with a hard refresh (Ctrl+Shift+R on Windows and Linux, Cmd+Shift+R on macOS). Gravatar’s help page says plainly that it may take a little while for external sites to start using a new image.

Two details save a lot of grief. First, the address is matched after it is lower-cased and trimmed, so capital letters and a stray trailing space in the WordPress field do not matter. Second, an address with a plus tag, such as name+blog@example.com, is a different address from name@example.com as far as the hash is concerned, so the Gravatar account needs the exact one WordPress holds.

How does WordPress get your Gravatar?

It helps to know the route, because every fix in this guide targets one stage of it. When a theme calls get_avatar(), core runs these stages in order. We read the current core source (the 7.1 branch and trunk, which is 7.2 Beta 5) to confirm the order and the hash.

  • pre_get_avatar runs first. Return a non-null value and core skips everything else and prints your HTML.
  • get_avatar_data() collects size, default image, rating and the email or user. The pre_get_avatar_data filter runs here. If the arguments come back with a url set, core uses it and never contacts Gravatar.
  • Otherwise core lowercases and trims the email, hashes it with SHA-256, and builds https://secure.gravatar.com/avatar/<hash> with the size, default and rating as query arguments. WordPress 6.8, 7.0 and 7.1 all use SHA-256 in this step.
  • The get_avatar_url filter gets the finished URL and can swap it for anything.
  • Finally the get_avatar filter gets the full <img> HTML, along with the size, default, alt text and arguments.

The consequence is the single most useful fact for troubleshooting: the image address does not change when you swap the picture. The hash comes from your email, and your email did not change. Anything that caches an image by its address, such as a browser, a CDN or a plugin that copies avatars to your server, will keep serving the old file until its own copy expires.

Hook

What you can do with it

Arguments

pre_get_avatar

Replace the whole avatar HTML and skip core

$avatar (null), $id_or_email, $args

pre_get_avatar_data

Set $args['url'] to skip Gravatar, or change rating, size or default

$args, $id_or_email

get_avatar_url

Swap the final URL for another image

$url, $id_or_email, $args

get_avatar_data

Adjust the final data array, including found_avatar

$args, $id_or_email

get_avatar

Edit the finished <img> HTML

$avatar, $id_or_email, $size, $default, $alt, $args

Checked on 15 November 2026 against developer.wordpress.org and the WordPress source on GitHub.

Why is my Gravatar not updating on WordPress?

Each symptom below follows the same pattern: what you see, how to confirm the cause, and what to do. Work top to bottom, because the first one tells you whether the problem is on Gravatar’s side or yours.

Symptom: the new picture is on Gravatar, the old one is on my site

Check. Take the avatar address your site uses and open it on its own. Find the hash first. In a terminal with WP-CLI you can compute it:

wp eval 'echo hash( "sha256", strtolower( trim( "you@example.com" ) ) ), PHP_EOL;'

The same value comes out of printf '%s' 'you@example.com' | shasum -a 256 on macOS or Linux, which we compared on 15 November 2026. Then request the image header-only, asking Gravatar to return a 404 when no image exists for that hash:

curl -sI "https://secure.gravatar.com/avatar/PASTE_HASH_HERE?s=200&d=404" | grep -i -E "^HTTP|cache-control" 

A 200 means Gravatar has an image for that address. Open the same URL without the d=404 part in a private window and look at it. If you see the new picture there, Gravatar is fine and something on your side is holding the old file. If you see the old one, the change did not save as the current avatar, or Gravatar’s own edge cache has not expired yet.

Fix. Reselect the image on gravatar.com so it shows the current border, then wait. We measured the response headers on 15 November 2026 and both gravatar.com/avatar and secure.gravatar.com/avatar answered with cache-control: max-age=300, which is five minutes. That is one sample on one day and Gravatar can change it, so treat it as a guide: expect a few minutes at Gravatar’s edge, then add whatever your own layers hold on top.

Symptom: I see a grey silhouette or a generated pattern instead of my photo

Check. Three settings cause this, and all three are easy to test:

  • Email mismatch. Run wp user get 1 --field=user_email (swap in your user ID) and compare it character by character with the address on your Gravatar account.
  • Rating. Gravatar’s docs say that by default only G-rated images show, and that when an image does not meet the requested rating the default image is returned instead. WordPress asks for the rating stored in Settings, Discussion, and the default is G. An image rated PG on Gravatar will not show on a site that only accepts G.
  • Hidden avatar. In your Gravatar account settings the Public avatar option can be switched off. When it is off, Gravatar’s help page says other sites show a default avatar in its place. Hiding profile sections does not affect this, because avatar visibility is its own setting.

Fix. Make the emails match, set the image rating to something your site accepts (or raise the site’s maximum rating in Settings, Discussion, Avatars, Maximum Rating), and turn Public avatar back on. To see the site-side values from the command line:

wp option get show_avatars
wp option get avatar_rating
wp option get avatar_default

Defaults on a fresh install are show_avatars of 1, avatar_rating of G and avatar_default of mystery, which we confirmed in the core install schema.

Symptom: right picture in wp-admin, wrong picture in comments

Check. Core builds a comment avatar from the account when the comment has a user ID, and falls back to the email typed into the comment form when it does not. So a comment you left while logged out, or with a different address typed in, keeps using that other address even after you fix your account.

Fix. Open Comments, find the comment, and read the email under the author name. Edit the comment, put your account address in, and save. For future comments, log in before replying. Old comments from guests will always show whatever Gravatar holds for the address they used.

Symptom: I see the new picture, but visitors still see the old one

Check. Load the page in a private window on your phone using mobile data, so you skip your home network and browser cache. If the old picture appears there, a shared layer is holding it. One point we want to be honest about: a page cache stores HTML, and the HTML only holds the Gravatar address. That address did not change, so a page cache by itself does not freeze an old picture. The layers that can are:

  • Browser image cache. Each visitor’s browser keeps its own copy for as long as the response headers allow.
  • A CDN or image proxy in front of your images. If your setup rewrites or proxies external images through your CDN, that copy has its own lifetime.
  • Avatar caching plugins. Some performance plugins download Gravatar images and serve them from your own server. LiteSpeed Cache, for example, has an Avatar Cache feature that appears in its 7.9.3 changelog (released 3 November 2026).
  • A theme that stores a copy. Some themes and community plugins save a local avatar the first time a user logs in.

Fix. Purge the avatar cache in whatever plugin owns it, then purge the CDN. If you are not sure which layers your site has, our guide to every WordPress caching layer, plugin and host cache lists them in the order a request passes through them, and the piece on cookies that bypass the page cache explains why logged-in users and visitors can see different things.

Symptom: a broken image icon where the avatar should be

Check. Open the browser developer tools, reload, and look at the Console and Network panels for the avatar request. A blocked request usually names the reason. Three causes come up repeatedly: a Content Security Policy whose img-src list does not include the Gravatar host, a firewall or privacy extension that blocks third-party images, and a site served from a network that cannot reach Gravatar.

Fix. Add https://secure.gravatar.com to the img-src directive if you set a strict policy (core builds avatar URLs on that host). For a site that must not talk to third parties at all, switch to a local avatar, covered below. Note that WP_HTTP_BLOCK_EXTERNAL does not stop this: it blocks requests made by PHP on your server, while the browser fetches avatars itself. Our piece on reducing external HTTP requests in WordPress covers the server side of that line.

Symptom: a different picture from the one on Gravatar

Check. Something is replacing the Gravatar address before it reaches the page. Membership, community and LMS plugins often add their own profile photo, and a theme can do the same. Run the script in the next section to see exactly which plugin or theme file is attached to the avatar filters.

Fix. Change the picture where the owning plugin keeps it (its profile screen), or remove its override if you want Gravatar back. Changing Gravatar will not move a picture that lives in another plugin’s profile field.

How do I find which plugin or theme is changing my avatar?

Deactivating plugins one at a time on a live site is slow and risky. A faster way is to ask WordPress which callbacks are attached to the five avatar hooks. Save this as list-avatar-filters.php and run it with wp eval-file. It prints the hook, the priority and the file each callback comes from.

<?php
// Run with: wp eval-file list-avatar-filters.php
global $wp_filter;
$hooks = array( 'pre_get_avatar_data', 'pre_get_avatar', 'get_avatar_url', 'get_avatar_data', 'get_avatar' );
foreach ( $hooks as $hook ) {
	if ( empty( $wp_filter[ $hook ] ) ) {
		echo $hook . ": no callbacks\n";
		continue;
	}
	foreach ( $wp_filter[ $hook ]->callbacks as $priority => $callbacks ) {
		foreach ( $callbacks as $callback ) {
			$fn = $callback['function'];
			try {
				$ref  = is_array( $fn ) ? new ReflectionMethod( $fn[0], $fn[1] ) : new ReflectionFunction( $fn );
				$file = $ref->getFileName();
			} catch ( ReflectionException $e ) {
				$file = 'unknown';
			}
			echo $hook . ' priority ' . $priority . ': ' . $file . "\n";
		}
	}
}

Checked on 15 November 2026 with php -l on PHP 8.5, and the callback loop against a stub. On a plain install every line should say no callbacks for the first three hooks. Any file path under wp-content/plugins or your theme is a suspect. If you still need to test by deactivating, do it on a staging copy, and have debug.log working first so a fatal error leaves a trace you can read.

How long does a Gravatar take to update?

Gravatar does not publish a guaranteed time. Its help page says only that it may take a little while for external sites to use a new image. What we can show is the cache header it sends: max-age=300 on our test requests on 15 November 2026, which is five minutes. After that, each layer you run adds its own wait.

Layer

Typical wait

How to clear it

Gravatar edge

About five minutes by the header we measured

Wait, or reselect the image so it is saved as current

Your browser

Until the image response expires

Hard refresh, or clear cached images and files

CDN or image proxy

Set by your CDN rules

Purge the avatar host or the whole cache

Avatar caching plugin

Set by the plugin (hours to days)

Use the plugin’s purge or avatar cache reset

Local avatar plugin

None for Gravatar, the plugin file is served directly

Edit the picture in the plugin

If a day has passed and a private window on a clean network still shows the old picture, stop waiting and work through the symptoms above, because time is no longer the cause.

What do the avatar settings under Settings, Discussion do?

Open Settings, then Discussion, and scroll to Avatars. These are the options WordPress reads before it ever contacts Gravatar. We read the settings screen source in trunk to confirm the labels.

Setting

Option name

What it does

Show Avatars

show_avatars

Turns avatars on or off site-wide. Off means no Gravatar request at all.

Maximum Rating

avatar_rating

G, PG, R or X. Anything above the chosen level is replaced by the default image.

Default Avatar

avatar_default

What shows for people without a Gravatar: Mystery Person, Blank, Gravatar Logo, Identicon, Wavatar, MonsterID, Retro, RoboHash, Initials or Color.

Two of those defaults matter for troubleshooting. If you picked Blank, a missing Gravatar looks like a bug because nothing renders at all. If you picked Initials or Color, a person without a Gravatar still gets a tidy generated picture, which hides the fact that their address does not match. Set the default to Mystery Person while you test, so a mismatch is obvious.

Developers can add or remove options in this list with the avatar_defaults filter, and plugins that add their own default image use it.

Can I stop using Gravatar and use a local avatar instead?

Yes, and for membership sites, community sites and anywhere privacy rules matter it is often the better call. Two routes exist: a plugin that lets people upload a picture to your media library, or a few lines of code that point avatars at your own files. We checked the main plugins on the WordPress.org API on 15 November 2026.

Plugin

Rating (reviews)

Active installs

Last updated

Tested up to

Note

Simple Local Avatars

4.6 of 5 (89)

100,000+

19 Aug 2026 (2.8.6)

7.1.4

Local upload in the profile screen, falls back to Gravatar

One User Avatar

4.7 of 5 (41)

100,000+

21 Aug 2026 (2.5.6)

7.1.4

Fork of WP User Avatar, media library picker

User Profile Picture

4.6 of 5 (59)

40,000+

9 Jul 2026 (2.6.4)

7.0.8

Uses the media library, tested up to 7.0.8 only

Basic User Avatars

4.7 of 5 (42)

20,000+

15 Nov 2024 (1.0.9)

6.7.11

Not updated for two years, check before installing

What these numbers tell you, and what they do not. The ratings are high but the review counts are small, and the newest reviews on three of the four listings are more than a year old (Basic User Avatars has one from about four months ago), so we cannot honestly quote a last-12-months mood for them. The support threads are too few to work out a resolved share (the API shows 0 of 1 for Simple Local Avatars and One User Avatar, 0 of 0 for the other two). The 10up repository for Simple Local Avatars is the one place with recent, specific activity, and we use it in the next section.

Our suggestion: pick Simple Local Avatars if you want an actively maintained plugin with the largest installed base, and use One User Avatar if you want a simpler media-library picker that is also recently updated. Skip Basic User Avatars unless you check it on a staging copy first, and confirm that any plugin you install has a recent “tested up to” value. If you already run ProfilePress or a community plugin, check its profile screen first, because it may already offer a profile photo and a second avatar plugin would only add a conflict.

The code route: point avatars at your own image

If you only need a few users to have a custom picture, a filter is lighter than a plugin. This example uses the get_avatar_url filter, reads an attachment ID saved in user meta, and falls back to Gravatar when none is set. It handles a user ID, a WP_User object or an email string, which are three of the forms core can pass.

<?php
// Use a media-library image as the avatar for users who have one saved.
add_filter(
	'get_avatar_url',
	function ( $url, $id_or_email, $args ) {
		$user = false;
		if ( is_numeric( $id_or_email ) ) {
			$user = get_user_by( 'id', (int) $id_or_email );
		} elseif ( $id_or_email instanceof WP_User ) {
			$user = $id_or_email;
		} elseif ( is_string( $id_or_email ) && is_email( $id_or_email ) ) {
			$user = get_user_by( 'email', $id_or_email );
		}
		if ( ! $user ) {
			return $url;
		}
		$attachment_id = (int) get_user_meta( $user->ID, 'my_avatar_id', true );
		if ( ! $attachment_id ) {
			return $url;
		}
		$local = wp_get_attachment_image_url( $attachment_id, array( $args['size'], $args['size'] ) );
		return $local ? $local : $url;
	},
	10,
	3
);

Checked on 15 November 2026 with php -l on PHP 8.5. The meta key my_avatar_id is a name we chose, so rename it to match where your site stores the attachment ID. Comment objects are not handled here, so comment avatars still use Gravatar.

If the goal is that no visitor’s browser ever contacts Gravatar, use pre_get_avatar_data instead. Setting url there makes core return early, before any hash is built.

<?php
// Never contact Gravatar: return a local URL before core builds the hash.
add_filter(
	'pre_get_avatar_data',
	function ( $args ) {
		$args['url']          = get_stylesheet_directory_uri() . '/images/default-avatar.png';
		$args['found_avatar'] = true;
		return $args;
	}
);

Checked on 15 November 2026 with php -l. In core, a non-null url in the returned arguments short-circuits get_avatar_data(), as the source comment states. Put the default image in your child theme at the path shown, or change the path.

Common mistakes people report

These come from the 10up Simple Local Avatars issue tracker and the WordPress.org support forum for that plugin, because that is where public, dated reports exist. We paraphrase, link each one and give its date, all checked on 15 November 2026. Each lesson applies to any avatar setup.

  • Assuming a plugin update keeps your uploaded pictures. A forum thread from 2024 describes users who updated to version 2.7.8 and then saw Gravatar or generated avatars instead of the pictures they had uploaded, thread here. Lesson: back up before updating an avatar plugin and test one profile on staging.
  • Not knowing which source wins. Another 2024 thread reports Gravatar taking priority over a local upload in comments for some accounts, thread here. Lesson: check the plugin’s priority setting, and test both the post author box and the comment list.
  • Letting the file and the media entry drift apart. An issue opened on 21 July 2026 reports avatar files being deleted while the media library entry stays, so the entry exists and the image does not, issue 372. Lesson: if an avatar goes blank, look in the uploads folder, not just the media library.
  • Stacking login or SSO plugins on top. An issue from 27 April 2026 says avatar upload stopped working after Auth0 was installed, and the maintainers replied that they cannot test against every plugin that edits profiles, issue 368. Lesson: when a profile screen is changed by an SSO plugin, test the avatar field there first.
  • Sharing avatars across a multisite network without testing every size. An issue from 23 October 2026 describes a missing avatar size being saved as an empty value and later returning the site homepage URL instead of an image, issue 383. It was still open when we checked. Lesson: on multisite, test thumbnails, comment avatars and the admin bar separately.

Is my Gravatar private? What does the hashed email mean?

Gravatar’s data privacy page lists three things as public: the profile images you upload, any information you make public on your profile page, and the hash of your email address used to serve your profile image. The hash is how a site asks for your picture without ever sending your address to Gravatar: both sides encode the address the same way, so the two can match without either sharing it.

There are a few practical points for a site owner. The hash appears in the image address in your page source for every comment author and member, so it is visible to anyone who views source. The hash is computed from the email alone, so anyone who already holds a list of addresses can compute the same hashes and check which ones have a Gravatar. We are not saying a hash gives your address away, only that it is a stable identifier that follows the address across every site that uses Gravatar. Gravatar’s own page does not discuss reversing it, so we do not make a claim either way.

The visitor side matters too. Because the browser fetches the picture, each visitor’s IP address reaches Gravatar’s servers, the same as for any third-party image. If your privacy notice or local rules need that to be off, either turn avatars off under Settings, Discussion, or use a local avatar as shown above. The privacy notes in our guide to every way WordPress hands out usernames are a good companion read, since avatars are one of several places an identifier leaks.

On the Gravatar side, the Public avatar toggle hides your picture from other sites. Hiding profile sections is a layout control, not a privacy control for API data, per Gravatar’s visibility page; turning off Public profile is what makes profile information non-public.

Frequently asked questions

Why is my Gravatar not showing on WordPress?

Most often the email on your WordPress account does not match the one on your Gravatar account, or the image rating is above the site’s maximum rating, or the avatar is set to hidden. Check those three first, then look at caching.

How long does it take for a Gravatar to update on a WordPress site?

Gravatar does not give a fixed time, and says only that it may take a little while for sites to use a new image. The avatar responses we tested on 15 November 2026 carried a five-minute cache header. Your own caches add to that.

Does WordPress store my Gravatar?

No. WordPress builds the image address from a hash of the email and your browser fetches the picture from Gravatar. Only a plugin or theme that copies avatars locally stores a copy.

Can I change a Gravatar from the WordPress dashboard?

Not directly. The Users, Profile screen shows the current Gravatar and points you to Gravatar to change it. A local avatar plugin adds an upload field inside WordPress instead.

Is Gravatar run by WordPress?

It is run by Automattic, the company behind WordPress.com, and Gravatar describes itself that way. It is not part of the WordPress core software, although core ships with support for requesting images from it.

Sources and what we checked

Everything below was read on 15 November 2026.

  • Gravatar image request documentation for the SHA-256 URL format, size, default, rating and the 404 behaviour.
  • Gravatar avatars help, visibility settings, profile privacy and access and data privacy for the account steps, the Public avatar setting and what is public.
  • The WordPress core source for get_avatar_data() and get_avatar() on the 6.8, 7.0, 7.1 and trunk branches, and the discussion settings screen.
  • The WordPress.org plugin API for the plugin figures, the review pages and the 10up GitHub issue tracker for the reported problems.
  • Response headers measured with curl -I on gravatar.com and secure.gravatar.com.

If you spot something that has changed since 15 November 2026, tell us and we will update this page.

Part of the Wbcom Designs family

The all-in-one WordPress community stack

Also ours: wbcomdesigns.comvapvarun.combrndle.com