: How to control or Block attachment URLs? We are working for a site and almost every post having one extra url from image attachment and webmaster considering duplicate content of my site. Please
We are working for a site and almost every post having one extra url from image 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 ?
More posts by @Sims2060225
1 Comments
Sorted by latest first Latest Oldest Best
This sounds like the work of the_attachment_link template tag.
Have a look here for the documentation: 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)
Example:
<?php the_attachment_link( $id, $fullsize, $deprecated, $permalink ); ?>
Change to:
<?php /* the_attachment_link( $id, $fullsize, $deprecated, $permalink ); */ ?>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.