• Resolved appscaptain

    (@appscaptain)


    Hi,

    I can’t see any images indexed in my sitemap despite the option being turned on in Features in the Yoast plugin.

    I have added a filter to the functions.php file of the theme. But still no luck. And it is not clear how to add images to the sitemap after following this article: https://yoast.com/help/images-in-the-xml-sitemap/

    I have added this:

    function filter_wpseo_sitemap_urlimages( $images, $post_id ) {
    array_push($images, ‘https://site.ciom/wp-content/uploads/2021/02/images name’);
    return $images;
    };
    add_filter( ‘wpseo_sitemap_urlimages’, ‘filter_wpseo_sitemap_urlimages’, 10, 2 );`

    What am I missing here and why do I have to specify a specific image in the filter? I would assume Yoast would do this automatically. I have Yoast Pro.

    The page I need help with: [log in to see the link]

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

    (@maybellyne)

    Hello,

    Thanks for reaching out.

    You mentioned that you couldn’t see images in your sitemap even after adding the necessary developer filter. We don’t generate a separate image sitemap but follow Google’s advice and include them on the page or post sitemap. You’ll see the added images in a separate column.

    However, we checked https://getitfixed.uk/page-sitemap.xml, and it has images. See the annotated screenshot. Could it be that you are referring to something else?

    Thread Starter appscaptain

    (@appscaptain)

    Hi Maybellyne,

    Thank you for the response. You’re right I see the images listen in the sitemap, but I don’t see them on Google still. What is causing this?

    Plugin Support devnihil

    (@devnihil)

    @appscaptain In order for changes to pages and new information to show up in Google, this first requires that Googlebot re-crawls the content in question. On average, Google will automatically re-crawl a site every 48-72 hours, but this can vary depending on other factors.

    Plugin Support devnihil

    (@devnihil)

    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 ‘Images not showing in Sitemap’ is closed to new replies.