Mobile app version of vmapp.org
Login or Join
Sims2060225

: 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

@Sims2060225

Posted in: #GoogleSearchConsole #Wordpress

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 ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims2060225

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria169

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 ); */ ?>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme