How to exclude attachment-sitemap.xml from Yoast sitemap

I noticed that my sitemap includes an unnecessary xml list for all images uploaded on the website, so i was wondering how can i exclude that list “attachment-sitemap.xml”, i don’t wanna use the show media option since it will apply a noindex to all media.

i think the answer could be here but i’m still not sure how can i exclude “attachment-sitemap.xml”, hope someone can help me with that

https://kb.yoast.com/kb/how-to-customize-the-sitemap-index/

Read more here:: How to exclude attachment-sitemap.xml from Yoast sitemap

Leave a Reply

Your email address will not be published. Required fields are marked *