Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support amboutwe

    (@amboutwe)

    The wpseo_xml_sitemap_img filter allows you to modify the sitemap images and the code below will remove the images when the sitemap next updates. You can force an update by disabling and enabling the sitemaps.

    /* Remove Images From Yoast Sitemap */
    add_filter( 'wpseo_xml_sitemap_img', __return_false );

    Learn more about images in the sitemap here.

    Does this need to be added to the functions file?

    Or do you need to edit the yoast plugin?

    Plugin Support amboutwe

    (@amboutwe)

    The code would be added to the functions file.

    Is there any function code to remove Last Modified Date? I don’t want to show lastmod date in sitemap.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Turn off feature in Yoast Sitemaps’ is closed to new replies.