EMPTY LINES SITEMAP WOOCOMMERCE PRODUCTS

#141632
  • Resolved Luca Fox
    Rank Math free

    Hi guys, I have a problem with my woocommerce product sitemap.

    There are several empty lines and not all products are entered.

    I attach screen.

    Can you help me?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Danial
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Can you please follow these steps?
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/xXXhDt

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server.

    If it does not work, this could also suggest a conflict between Rank Math and one of your installed plugins. To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Try enabling only Rank Math, then check if the function is working. Then try enabling each plugin one by one until you found the plugin that conflicts when you try to add the keyword.

    Please let us know if that does not fix the issue.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I tried, the problem is between rankmath and WPML.

    I updated private data with test screenshots ..

    Can you give me a hand please?

    Hello,

    Thank you for following up, and sorry for the delay.

    I’ve checked your sitemap, and it seems that translations of those pages were not completed. Please use the filter below:

    add_filter('rank_math/sitemap/entry', function ($url){
        if (isset($url['loc']) && empty($url['loc'])) {
            return false;
        }
        return $url;
    });

    This should go to your theme’s functions.php, then flush again your sitemap cache with the steps above and clear your website’s cache.

    I hope that helps. Thank you, and looking forward to your update.

    Now the empty lines are gone, but not all products are included in the product sitemap …

    There are only the IT product

    Hello,

    You can find your English version related URLs in /en/product-sitemap.xml.

    Please check and let us know.

    Looking forward to helping you.

    Hi guys, but it’s correct to send the sitemap in EN?

    Hello,

    Thank you for following up.

    We recommend submitting your main sitemap sitemap_index.xml only (your website’s main language) to Google Search Console as Google will use it to crawl the other sitemaps.

    I hope that helps. Thank you, and please don’t hesitate to contact us if you need further assistance.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘EMPTY LINES SITEMAP WOOCOMMERCE PRODUCTS’ is closed to new replies.