Sitemap Not Showing Images

#645124
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    You can see the image URLs by viewing the sitemap’s source code:
    view-source:https://www.silkyflowerstore.com/product-sitemap1.xml

    However, it seems that the images are added thrice in the source code, which is why they are showing 3.

    Recently, you have added a filter to add cdn to your sitemap image. Could you please share the exact filter you have added so we can check if it’s causing this issue?

    Looking forward to helping you.

    Thank you.

    Thanks for your fast reply. The below is the complete function.php

    <?php

    // Exit if accessed directly
    if ( !defined( ‘ABSPATH’ ) ) exit;

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED – Do not modify or remove comment markers above or below:

    if ( !function_exists( ‘chld_thm_cfg_locale_css’ ) ):
    function chld_thm_cfg_locale_css( $uri ){
    if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . ‘/rtl.css’ ) )
    $uri = get_template_directory_uri() . ‘/rtl.css’;
    return $uri;
    }
    endif;
    add_filter( ‘locale_stylesheet_uri’, ‘chld_thm_cfg_locale_css’ );

    if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
    function chld_thm_cfg_parent_css() {
    wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’, array( ‘porto-plugins’,’porto-theme’,’porto-theme-shop’ ) );
    }
    endif;
    add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’, 1000 );

    // END ENQUEUE PARENT ACTION
    //

    add_action(‘wp_enqueue_scripts’, ‘porto_child_css’, 1001);

    // Load CSS
    function porto_child_css() {
    // porto child theme styles
    wp_deregister_style( ‘styles-child’ );
    wp_register_style( ‘styles-child’, get_stylesheet_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘styles-child’ );

    if (is_rtl()) {
    wp_deregister_style( ‘styles-child-rtl’ );
    wp_register_style( ‘styles-child-rtl’, get_stylesheet_directory_uri() . ‘/style_rtl.css’ );
    wp_enqueue_style( ‘styles-child-rtl’ );
    }
    }

    add_action(‘woocommerce_before_subcategory’, ‘woocommerce_template_loop_category_link_open’, 11);
    add_action(‘woocommerce_after_subcategory’, ‘woocommerce_template_loop_category_link_close’, 11);

    add_action(‘woocommerce_before_shop_loop_item’, ‘woocommerce_template_loop_product_link_open’, 11);
    add_action(‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_product_link_close’, 6);

    add_action(‘init’, function(){
    remove_action(‘woocommerce_before_shop_loop_item_title’, ‘porto_loop_product_thumbnail’, 10);
    });
    add_action(‘woocommerce_before_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 11);

    add_filter(‘woobe_filter_taxonomies_exists_show’, function() {
    return true;
    });

    function remove_select_image_sizes() {
    foreach ( get_intermediate_image_sizes() as $size ) {
    if ( !in_array( $size, array( ‘medium_large’ ) ) ) {
    remove_image_size( $size );
    }
    }
    }

    add_action(‘init’, ‘remove_select_image_sizes’);

    add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);

    /**
    * Remove the generated product schema markup from Product Category and Shop pages.
    */

    Hello,

    The code you have shared does not contain the filter from your previous ticket.

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    I turned off Include Featured Images and the number of images showing went from 3 to two. Tried other option but stayed at two. Hence have turned off Images in Sitemaps and now no images showing.

    Intend to use a seperate sitemap for images.

    Hello,

    At the moment, we only offer attachment-sitemap.xml if you wish to display a separate sitemap for your images and media.

    Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.

    Thank you!

    Hello,

    We’re just following up with you to see if you have any other questions or concerns that we can assist you with. Or, if your issue has been resolved, please let us know so we can mark this ticket as closed.

    We appreciate your patience and cooperation throughout this process. Your feedback is valuable to us and helps us improve our service.

    Thank you for choosing Rank Math.

    closed thanks

    Hello,

    We are glad to hear that this issue has been resolved. Thank you for letting us know. This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

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

The ticket ‘Sitemap Not Showing Images’ is closed to new replies.