Product Categories Sitemap Issue

#940171
  • Hi, our product categories sitemap is showing only one category, however, we have more categories, they were showing fine previously, but all of sudden all categories are disappeared except one. We have tried all possible things, like adding code to php file provided by rankmath support in articles, activated and deactivated plugins, reconnected rankmath, flush sitemap cache, activate and deactivated entire or product categories sitemap, but the issue is still as is. We have also checked php version conflicts (if any). but no change.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting support.

    By default Rank Math does not include empty terms, that is taxonomy pages that have no posts associated with them in the sitemap.

    You can enable the option Include Empty Terms from Rank Math SEO > Sitemap Settings > Categories.

    Also, Rank Math excludes pages set to noindex or with a different canonical URL from the sitemap.

    If any of the above is not the case please follow the steps below for further troubleshooting:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    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. For plugins or Cloudflare, please follow this article: https://rankmath.com/kb/exclude-sitemaps-from-caching/

    If the issue persists then try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. Kindly add this code snippet to 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/.

    After you add the code, please clear any cache on your site or server and check your XML sitemap again. If you’re still facing issues with the sitemap, please let us know – we are happy to investigate further.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.