smart Attachment Page Remove


This Plugin allows you to remove Attachment Pages automatically generated by WordPress

See also Plugin Homepage and Plugin Doc

WordPress automatically generates a page for every file you upload to your Media Library. Even if you do not want to use these Pages and never link media files to their attachment page these pages exist and can be accessed by their automated generated URL.

The smart Attachment Page Remove Plugin blocks access to Attachment Pages and causes an 404 page not found error. There are not settings, just activate the Plugin.


This Plugin uses GlotPress – the Translation System – for translations. Translations can be submitted at

Translation are highly appreciated. It would be great if you’d support this Plugin by adding a new translation or keeping an existing one up to date. If you’re new to GlotPress take a look at the Translator Handbook.

Do you like the smart Attachment Page Remove Plugin?

Thanks, I appreciate that. You don’t need to make a donation. No money, no beer, no coffee. Please, just tell the world that you like what I’m doing! And that’s all.

More plugins from Peter


From your WordPress dashboard

  1. Visit ‘Plugins’ -> ‘Add New’
  2. Search for ‘smart Attachment Page Remove’
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Manually from

  1. Download smart Attachment Page Remove from and unzip the archive
  2. Upload the smart-attachment-page-remove folder to your /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress


What about SEO?

Requesting a removed attachment page results in a 404 file not found error which lets a Search Engine know that the page does not exist and has to be removed from the search index.


Simple and effective

I’ve been looking for hours how to do this through code, but nothing worked. I don’t like redirects to the homepage since that makes it look like the site isn’t funcioning properly.

This is exactly what I want, however, so thanks!

Read all 1 review

Contributors & Developers

“smart Attachment Page Remove” is open source software. The following people have contributed to this plugin.



1.0 (2017-01-12)

  • Initial Release