• Resolved mansour

    (@iransound)


    Hi I Want Remove Only post thumbnail From Sitemap And Keep Post Image, How can I do this?

    <url>
    		<loc>https://example.com/songs/</loc>
    		<lastmod>2021-04-22T12:50:01+00:00</lastmod>
    		<image:image>
    			<image:loc>https://example.com/wp-content/uploads/2021/04/top-pop-music.jpg</image:loc>
    			<image:title><![CDATA[top-pop-music]]></image:title>
    			<image:caption><![CDATA[Amazing Music Playlist]]></image:caption>
    		</image:image>
    		<image:image>
    			<image:loc>https://example.com/wp-content/uploads/2021/04/top-pop-music.jpg</image:loc>
    			<image:caption><![CDATA[Amazing Music Playlist]]></image:caption>
    		</image:image>
    	</url>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Hi,

    Yoast SEO creates XML sitemaps, which by default include an entry for every public post and page on your website. If those pages contain images, we include information about them in the XML sitemap entry.

    If you want to make any changes to the images detected in the sitemaps, you’ll have to use our developer filter here — https://yoast.com/help/images-in-the-xml-sitemap/

    Thread Starter mansour

    (@iransound)

    Thanks For Your Answer But that filter Removed All Image From Sitemap! I Say I Want Keep Content Image And Only “Featured Image”

    Plugin Support Maybellyne

    (@maybellyne)

    Currently, there is no filter to remove only featured images from the sitemap. And there’s a difference between the support we can offer and the level of programming needed to change (core) features of our plugin. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes.

    And though we cannot be of any assistance, you’re completely free to change anything in the plugin to better suit your needs.

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How I Can Remove Only Thumbnail From Sitemap?’ is closed to new replies.