WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by joppuyo v4.0.0

Disable Media Pages

Completely remove "attachment" pages for WordPress media. Improve SEO and prevent conflicts between page and image permalinks.

Disable Media Pages

The facts

Rating
5★ from 17
Active installs
10k+
Price
Free
Last updated
4 Aug 2025
Added
Dec 2020
Requires WP
6.0
Tested up to
WP 6.8.8
Requires PHP
8.0
Downloads
92,554

Our analysis

AI-assisted

Disable Media Pages is a WordPress plugin that prevents the creation of attachment pages for media files. By default, WordPress generates a separate page for each attachment, which can negatively impact SEO and reserve slugs that may be needed for other content.

This plugin automatically changes attachment slugs to unique IDs, preventing conflicts with other pages. If someone tries to access an attachment page, it will return a 404 status code. The plugin also provides WP CLI support for managing existing attachment slugs.

Best for: This plugin is suitable for WordPress users who want to manage media attachments more effectively and enhance their site's SEO.

What it does well

  • Disables automatic creation of attachment pages
  • Improves SEO by reducing thin content
  • Prevents slug conflicts with other pages
  • Supports WP CLI for management
  • Can mangle existing attachment slugs

Where it falls short

  • Limited information on additional features
  • No details on user interface or ease of use

Verdict

Disable Media Pages provides a straightforward solution for handling attachment pages, making it useful for those concerned with SEO and slug management.

From the developer

joppuyo's own description of Disable Media Pages, lightly tidied.

Completely disable “attachment” pages created by WordPress.

By default, WordPress creates a page for each of your attachments. This is can be undesirable because of two reasons:

Search engine optimization

Attachment pages don’t have any content, except an image, so they provide little value and can negatively affect your SEO because they are so-called thin content. Even worse, attachment pages may in some cases rank higher than your actual content pages which leads to a poor user experience.

Reserved slugs

Attachment pages can accidentally reserve slugs on your site. Let’s say you upload an image named contact.jpeg, an attachment page https://example.com/contact is automatically created. If you then try to create a page named Contact, the URL for that page will be https://example.com/contact-2 which isn’t that great.

How it works

This plugin works by automatically setting all attachment slugs to an unique id, so they won’t conflict with your pages. If an attachment page is accessed, the plugin will set a 404 status code and display the “page not found” template.

You can also mangle any existing attachment slugs so they won’t cause any issues in the future.

WP CLI support

The plugin supports WP CLI.

Mangle existing attachment slugs

wp disable-media-pages mangle

Restore attachment slugs

wp disable-media-pages restore

Note for WordPress 6.4

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for search engine optimisation.

Yoast SEO

Real-time SEO guidance, schema, and AI built in. Help search engines and AI systems understand your content. A...

Free 10M+ installs 4.8★ (27,819)
Rank Math SEO

Grow your organic traffic and AI visibility with powerful SEO tools, XML sitemaps, Schema automation, and buil...

Free 4M+ installs 4.8★ (7,496)
Translate WordPress with GTranslate

Translate WordPress with Google Translate multilanguage plugin using AI translation. Complete multilingual SEO...

Free 900k+ installs 4.9★ (4,950)
All in One SEO

AIOSEO is the WordPress SEO plugin. Boost SEO rankings with AI SEO tools, schema, meta descriptions, XML sitem...

Free 2M+ installs 4.7★ (5,201)
SEOPress

WordPress SEO plugin with AI SEO metadata, schema, XML sitemap, redirections & Search Console. Privacy-fir...

Free 300k+ installs 4.8★ (1,246)