• Hello

    Presently I’m using a Template that render a slider separately from the post content (we have a specific area to select and order all images that we want to show under the slider).

    As expected Yoast SEO is not including these images in the sitemap.

    WordPress is also excluding the same images from RSS, but I’m using a filter to fix the issue. Here is the code:

    function vw_cust_add_gallery_to_rss( $content ) {
    global $post;
    $attachments = get_post_meta( get_the_ID(), ‘vw_post_format_gallery_images’, false );
    if ( $attachments ) {
    ob_start();
    foreach( $attachments as $attachment_ID ) {
    echo wp_get_attachment_image( $attachment_ID, ‘vw_medium’ );
    }
    $content .= ‘

    ‘.ob_get_clean();
    }

    return $content;
    }
    add_filter( ‘the_content_feed’, ‘vw_cust_add_gallery_to_rss’ );

    There is any solution or a filter to include the same images in the Yoast sitemap?

    I really thanks all your help and support.

    Best Regards

    https://www.ads-software.com/plugins/wordpress-seo/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing Sitemap images’ is closed to new replies.