Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are working for a site and almost every post having one extra url from imageenter image description here attachment and webmaster considering duplicate content of my site.

Please see attachment and also tell me that's why my URL is not showing completely in SERP and showing in category ?

enter image description here

share|improve this question

This sounds like the work of the_attachment_link template tag.

Have a look here for the documentation: http://codex.wordpress.org/Function_Reference/the_attachment_link

You should be able to edit your theme files and remove these links (or simply comment them out)


 <?php the_attachment_link( $id, $fullsize, $deprecated, $permalink ); ?> 

Change to:

 <?php /* the_attachment_link( $id, $fullsize, $deprecated, $permalink ); */ ?> 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.