{"repo":"joppuyo/disable-media-pages","free":true,"listed":false,"github":"https://github.com/joppuyo/disable-media-pages","clone":"git clone https://github.com/joppuyo/disable-media-pages.git","description":"WordPress plugin to disable \"attachment\" pages automatically created for WordPress media","language":"PHP","stars":19,"topics":["wordpress","wordpress-plugin","wp-plugin"],"license":"GPL-2.0","category":"self-hosted-apps","readme_excerpt":"Disable Media Pages 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 return 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 Restore attachment slugs Note for WordPress 6.4 WordPress 6.4 includes a new feature that allows you to disable attachment pages. However, this feature redirects attachment pages to the file URL instead of returning a 404 er","default_branch":null,"files":null,"tree":[],"storefront":"/r/joppuyo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/joppuyo/disable-media-pages/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}