-
Dear Concern,
This is the product sitemap of my site . There are 7 products in the WooCommerce store. But not showing in sitemap. But when I create a new product it is showing in sitemap. Another thing, when I duplicate the old product it also doesn’t display the sitemap. can you help me Here is what happened and how can I solve this problem
-
Hello,
Thank you for reaching out to us regarding the issue with your product sitemap not displaying all products from your WooCommerce store.
Based on the information provided, it seems like there might be a conflict causing the products not to appear in the sitemap. One common reason for this issue could be related to caching or conflicts with other plugins or themes.
To troubleshoot this problem, you can follow these steps:
-
Check for Plugin or Theme Conflicts:
- Use the Health Check plugin to determine if any other plugins or themes are causing conflicts with the sitemap functionality.
-
Flush Sitemap Cache:
- If there is data in the source code but it’s not displaying in the sitemap, try flushing the sitemaps cache and excluding it from caching.
-
Remove Static Files:
- Ensure there are no static files with the same name as your sitemap file (sitemap_index.xml) that might be conflicting with the sitemap. You can FTP into your server and remove any such files.
If after following these steps, the issue persists, please update the ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for your understanding and patience.
Best regards.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank MathHello,
For initial troubleshooting, please follow these steps to flush your sitemap cache:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/3. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:
/** * Filter if XML sitemap transient cache is enabled. * * @param boolean $unsigned Enable cache or not, defaults to true */ add_filter( 'rank_math/sitemap/enable_caching', '__return_false');If you’re not sure how to add this code, you can follow this guide:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Also, we have noticed that you’re using
Premmerce SEO for WooCommerce. This causes conflicts on your site as you notice that your meta tags are duplicated in the product page’s source code.Looking forward to helping you.
I did all of the things you mentioned.
1. Flushed the sitemap cache
2. Added code to htaccess
3. Input filter hook in functions.php
4.Uninstall Premmerce SEO for WooCommerce
But still not resolved. If I create a new product it is visible in the sitemap, but the old product is not visible. Mark this pointHello,
Please follow our guide here for further troubleshooting:
https://rankmath.com/kb/url-not-in-sitemap/If the issue persists, then 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.
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.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
You have set the canonical URL for products in the “Advanced Tab” of our plugin’s meta box. When you set a canonical manually, our plugin treats the page as duplicate content and excludes it from the sitemap:
Please remove it to add the products to the sitemap.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Thanks… problem solved
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on
https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-postabout your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
-
The ticket ‘Products are not display on Sitemap’ is closed to new replies.