• Hello, Is there any way how to exclude only some images?

    For example I know, that images in post content of posts which has template ‘template-category.php’ I do not want to have these in sitemap.

    How can I exclude these images?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi @davidki ,

    When search engines crawl your post content, they’ll see both text and images. If there’s nothing wrong with your page, then the text and image are likely to be indexed.

    The sitemap is a tool to help the search engines crawl the content better, by providing all the URLs of the posts and images. So search engines unlikely to miss them. Note that without sitemaps, they still can crawl your website by going from one URL to others.

    So, as long as you still output images in your post content, excluding them from the sitemap is probably useless. For that reason, we don’t implement a way to exclude them.

    If you really don’t want those images to be crawled and indexed by search engines, it’s best to not use them in the post content at all.

    Thread Starter davidki

    (@davidki)

    I asked because of number of links in one sitemap. I will have a lot of links that will be in the sitemap and with images there will be even more of those links.

    What does it mean that your plugin has 1000 links by default in one sitemap? Is it 1000 article links? Or 1000 links to all URLs including images?

    Because when I tried to use a filter to reduce the number of links in the sitemap to 10, there were 10 articles in one sitemap. But if each article has 20 images, one sitemap will not have 10 links, but 200.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.