Home/Blog/WordPress
WordPress · Media · Errors

Images Not Showing in WordPress? Fix Broken Images

Naveen Goyal
27 November 2026
3 min read
WordPress
Short answer

Most broken images are wrong URLs: the site moved domain or switched to HTTPS and the old addresses are still in the database. Others are deleted files, wrong folder permissions or missing thumbnails. Find every broken image first, then fix the cause.

First, find every broken image

One broken image you noticed usually means many you did not. A link checker that also checks images lists them all with the page each one is on. LinkGuard scans posts, pages, menus and comments for broken images and lets you fix the URL or remove the image right from its dashboard.

1. Old URLs after a move or domain change

WordPress saves full image URLs in post content. After moving to a new domain, the images still point to the old one. Replace the old address everywhere with WP-CLI, after a backup. Run it with --dry-run first to see what would change:

wp search-replace 'https://old-domain.com' 'https://new-domain.com' --all-tables --dry-run

2. Mixed content after switching to HTTPS

If the site moved to HTTPS but images still load from http://, browsers can block them. Run the same search-replace from http://yourdomain.com to https://yourdomain.com, and make sure Settings → General shows the https address for both URLs.

3. The file is missing

Open the image URL directly. A 404 means the file is not in wp-content/uploads; it may have been deleted or not copied during a migration. Upload it again or restore it from a backup. Linux servers are case-sensitive, so Photo.JPG and photo.jpg are different files.

4. Folder permissions

If new uploads fail or show as broken, check permissions on wp-content/uploads: usually 755 for folders and 644 for files. Your host's file manager can fix them.

5. Missing thumbnail sizes

After changing themes, some pages ask for image sizes that were never created. Regenerate them:

wp media regenerate --yes

6. Lazy loading, CDN or hotlink rules

If images appear only after scrolling or not at all, a lazy-load script or optimisation plugin may be failing; turn it off to test. If they break only on some domains, check CDN settings and hotlink-protection rules in your hosting panel.

Frequently asked questions

Why are my WordPress images not showing?

Usually because image URLs still point to an old domain or http address, the files were deleted, or folder permissions are wrong.

How do I fix images after changing my domain?

Back up, then replace the old domain with the new one in the database, for example with WP-CLI search-replace, running it with --dry-run first.

How do I find all broken images on my site?

Use a link checker that also scans images, such as LinkGuard, which lists every broken image with the page it is on.

What permissions should the uploads folder have?

Usually 755 for folders and 644 for files, unless your host tells you otherwise.

Free tool: LinkGuard

Scans posts, pages, menus and comments for broken links and images, and fixes or removes them from one dashboard.