Attach Unattached Images
v1.5Rachid Aitouaissi · 2026年6月18日 上架
Automatically scan your posts, products, and downloads to find unattached images and attach them to their correct parent content.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 552
- 最近更新
- 2026年11月25日
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
- Go to Settings > Attach Unattached Images in your WordPress admin.
- Select the post types you want to scan: Posts, Products, and/or Downloads.
- Choose whether to scan Post Content, Post Excerpt, or both.
- Optionally enable the Attachment Page Redirector to redirect attachment pages to their parent content.
- 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.