Redirects attachment pages to the post, where they are placed, and hides backend option to link images to attachment page (if not default).
As of April 2026, Disable Attachment Pages is a WordPress images plugin with 400 active installations and a 5/5 rating from 2 reviews. It has been downloaded 7.1K+ times in total. Requires WordPress 4.0+ and PHP false+. Available on WordPress.org since 2017. Last updated 7 years ago — may have compatibility concerns. Top alternative: Autoptimize.
This plugin redirects attachment pages to the post, where they are placed (via 301). If there is no parent page, it redirects back to the WordPress home URL (via 302).
Further, when editing a post, the option to link images to their attachment page is hidden via CSS (except it is selected by default).
| WordPress | 4.0+ requiredTested up to 5.1.22 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.