Skip to content
Sign in
Attach Unattached Images icon

Attach Unattached Images

Automatically scan your posts, products, and downloads to find unattached images and attach them to their correct parent content.

Not scanned yet WordPress plugin

Install in

No install steps yet

Follow the steps on the source page.

Images uploaded directly to the WordPress Media Library may remain unattached, meaning they have no parent post assigned. Over time, this can lead to a cluttered media library and orphaned attachment pages with little or no content.

Attach Unattached Images scans your content and automatically links unattached images back to the post, product, or download they belong to.

Supported Post Types

The plugin scans the following post types:

  • Post — the default WordPress blog post type.
  • Product — the primary post type used by WooCommerce.
  • Download — the primary post type used by Easy Digital Downloads (EDD).

WooCommerce and Easy Digital Downloads are optional. Their respective post types are available when the corresponding plugins are installed and active.

What Gets Scanned

For each post, the plugin can scan:

  • Post Content — the main body of the post.
  • Post Excerpt — the summary/excerpt field.
  • Or both — configurable from the plugin settings.

The plugin uses batch processing to handle large websites while reducing memory usage and the risk of PHP timeouts, even on sites with thousands of posts.

Attachment Page Redirector

Images uploaded to WordPress can have their own attachment pages. These pages often contain little or no content, which can create a poor experience for visitors and contribute to thin-content pages being indexed by search engines.

Enable this option to redirect visitors who land on an attachment page to its parent post or product, providing a more useful destination.

The redirect uses a 301 (permanent) status code, telling search engines that the attachment page has permanently moved to its parent content. This can help consolidate indexing signals and avoid unnecessary attachment pages appearing in search results.

How to Configure

  1. Go to Settings > Attach Unattached Images in your WordPress admin.
  2. Select the post types you want to scan: Posts, Products, and/or Downloads.
  3. Choose whether to scan Post Content, Post Excerpt, or both.
  4. Optionally enable the Attachment Page Redirector to redirect attachment pages to their parent content.
  5. Click Start Scan — the plugin will process your content in batches automatically.

Features

  • Scan posts, WooCommerce products, and EDD downloads for unattached images.
  • Automatically attach unattached images to their correct parent post.
  • Choose to scan post content, post excerpt, or both.
  • Batch processing to handle large websites efficiently.
  • Redirect attachment pages to their parent post or product with a 301 redirect.
  • Lightweight and easy to configure.

Written by Joobi from the project's own listing. See the source page

attachmentsimagesmediaseo
25 Nov 2026
Version 1.5 released. Not scanned yet.

1.5

  • Updated plugin compatibility information for WordPress 7.1.5.
  • Improved plugin documentation.

1.4

  • Added compatibility with WordPress 7.1.

1.3

  • Fixed attachment-to-parent post redirection not working on some server configurations.

1.1

  • Added a Contact Us menu page with our support email for feature requests, bug reports, and questions.

1.0

  • Initial release.
  • Automatic image attachment via batch scanning.
  • Support for Posts, WooCommerce Products, and EDD Downloads.
  • Scan post content, excerpt, or both.
  • Attachment page 301 redirector.
18 Jun 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)