What are media attachments and should I submit them to search engines?

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

We often get asked about whether to include media attachments in the XML Sitemap or whether to set them to NOINDEX.  This FAQ will address questions related to media attachments and how they affect your site SEO.

What is a media attachment?

A media Attachment Page is a post type that is built into WordPress.  It is a singular page that displays a media item, such as an image, along with some additional information.

When you add a media item to your content, you have the option to link the media item to its Attachment Page as shown in the screenshots below:

When a visitor clicks on the image, they are taken to the Attachment Page which displays the image title, the image, a caption and/or description (if set), and the comments form (if comments are enabled).

How would I use Attachment Pages?

Because an Attachment Page is a standard WordPress post type, it has a theme template file that allows you to control what content is displayed and how the page is styled.

A good example of this would be a photography theme that uses the Attachment Page to display EXIF data for the photo such as the make and model of the camera, and the camera settings (ISO, Exposure, Shutter Speed, etc).  It could also display geographical information of where the photo was taken.

What are the SEO benefits?

For most sites there are no SEO benefits from a media Attachment Page.  This is because these pages have little to no content on them, they just show the image title, the image itself and that’s all.  Why would a visitor want to visit or search for this page?  Answer: they wouldn’t!

However, some sites will use the media Attachment Page to display rich content about the image, such as our example above of a photography site.  In this case, you probably want visitors to be able to find this content in search engines.  The rich content on these pages could be valuable for your ability to rank for specific terms and therefore there is great benefit in terms of your overall site SEO.

What should I do?

If your media Attachment Pages contain no rich content, then you should set them to NOINDEX by going to All in One SEO > General Settings > Noindex Settings and check the box for Media / Attachments in the Default to NOINDEX setting.  You should then go to All in One SEO > XML Sitemap and uncheck the box for Media / Attachments in the Post Types setting.  This will ensure that these pages are not submitted to search engines and that search engines are instructed not to index them.

However, if your media Attachment Pages contain rich content that visitors would want to find in search engines, then you should make sure that Media / Attachments are included in your XML Sitemap and that they are not set to NOINDEX.

You should then go to All in One SEO > General Settings > Content Type Settings and ensure that Media / Attachments is checked in the SEO on only these Content Types settings.  You should then to go the Media Library and set a unique SEO Title and SEO Description for each image in the All in One SEO Pack section.

Won’t this affect indexing of my images?

No, this has no affect on images.  This only affects media Attachment Pages.

Images will still be included in the XML Sitemap provided you don’t check the Exclude Images setting.

Images will still be indexed provided the search engine feels that there’s a benefit to including your images in their image search results.  Search engines such as Google may not index any or all of your images, so don’t be surprised if your images don’t appear in their image search.

  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar