WordPress 6.4 Disables Attachment Pages for New Installations

WordPress 6.4 Disables Attachment Pages for New Installations

Posted by WP Tavern on October 27, 2023 at 11:21 am
kitty kitty CATegory News
The upcoming 6.4 release, expected on November 7, will disable attachment pages for new installations. Up until now, WordPress automatically created attachment pages when users upload a file through the media upload system. It has been treated as a special post type that holds information about the file and each attachment is accessible under its own URL. SEO plugins have been redirecting attachment pages for years, as they rarely have any significant purpose. “Until WordPress 6.4 was released, WordPress created attachment pages by default for every attachment uploaded,” WordPress contributor Joost de Valk said in the dev note for this change. “On the vast majority of sites, these attachment pages don’t add any meaningful information. They do, however, exist, get indexed by search engines, and sometimes even rank in search results, leading to bad results for users and site owners.” There will be no changes to existing sites. They will continue to work as they always have, but new sites will have their attachment pages redirected to the attachment URL. Site admins who want to enable or disable attachment pages can use the new  wp_attachment_pages_enabled database option to control attachment pages’ behavior. There is no interface for changing whether a site…

…Full post on WP Tavern
Read Full

Similar Posts

Leave a Reply