Dealing with image attachment pages creating duplicate title tags!?

by satrap
2 replies
  • SEO
  • |
Hi Guys,

How do you guys deal with the issue of image attachment pages in WordPress creating duplicate title tags?

Google WMT shows some duplicate title tags that are caused by image attachment pages. I am using platinum SEO plugin and it doesn't have any option for no indexing attachment pages (you get the option on each attachment edit page, but not in the main dashboard. I have hundreds of images, so it would be kind of hard to go edit one by one).

I read some stuff and they all point to other plugins. But to be honest I don't want to install a new plugin or replace this one since it has lots of customized setting now (been using it for the last 3 years on the site).


I also found another solution which was to redirect the attachment page to the parent post page using this code <?php wp_redirect(get_permalink($post->post_parent)); ?> in Attachment.php or image.php

But when I do that, the page doesn't load, it gives the the server is redirecting the request for this address in a way that will never complete error.


Is there any way to manually noindex attachment pages through the attachment.php file. I know you could add <META NAME="ROBOTS" CONTENT="NOINDEX, FOLLOW">, but where exactly in the file do you add this?...

Or do you guys deal with this issue in a different way?...

I would appreciate some help. Thanks in advance.
#attachment #creating #dealing #duplicate #image #pages #tags #title
  • Profile picture of the author steeltape
    bump. I need to know this too
    {{ DiscussionBoard.errors[8487612].message }}
  • Profile picture of the author yukon
    Banned
    You could make page titles similar to how Wikipedia does for their image pages.

    Example (source):
    <title>File:Benz-velo.jpg - Wikipedia, the free encyclopedia</title>
    That way you still get the keyword in the page title, traffic knows it's an attachment & gives you the chance to add a relevant internal link pointing back to the main page that's related to that image.
    {{ DiscussionBoard.errors[8488901].message }}

Trending Topics