Skip to content
Error Code: Thin Media Attachment PagesLast Reviewed: 2026-11-28 · By SearchNexa SEO Engineering Team

How to Fix WordPress Attachment Page Indexation

Direct Answer

How to resolve How to Fix WordPress Attachment Page Indexation?

Fix WordPress attachment page indexation by redirecting attachment URLs directly to the parent post or media file (or setting wp_attachment_pages_enabled to 0 in WordPress 6.4+), preventing thin image-only pages from diluting crawl budget.

Symptoms & Diagnostic Indicators

Search 'site:yourdomain.com/attachment/' or inspect Google Search Console for media attachment URLs. Check if uploading an image creates an accessible /image-slug/ HTML page.

Common Root Causes

Older WordPress installations generate a separat

Older WordPress installations generate a separate public URL for every uploaded image or PDF.

Image-only attachment pages lack substantial tex

Image-only attachment pages lack substantial text, triggering 'Crawled - currently not indexed' or thin-content bloat.

Step-by-Step Fix

1

Disable Attachment Pages or Redirect to Parent

In WordPress 6.4+, attachment pages are disabled by default for new sites. For older sites, redirect attachment URLs to the parent post or apply noindex.

2

Verify Attachment Sitemaps Are Excluded

Ensure attachment post types are excluded from XML sitemaps (images should be referenced inside post image sitemaps instead).

Prevention & Verification Checklist

  • Link uploaded images directly to 'None' or 'Media File' in the editor
  • Audit XML sitemaps to confirm attachment post types are absent

Protect Crawl Budget from Thin Pages

SearchNexa Connector excludes noindex content from sitemaps and flags oversized or missing-alt media.

Download Plugin Free