news sitemap not crawling all our news

#595154
  • Resolved Anonymous
    Rank Math free

    news sitemap not crawling all our news. It only displayed 2 news and we have hundreds of posts

Viewing 3 replies - 1 through 3 (of 3 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.

    Please note that only the posts/pages published in the last 2 days are included in the News Sitemap as per Google’s News Sitemap Guidelines:
    https://support.google.com/news/publisher-center/answer/9606710?hl=en&ref_topic=9606468

    Here’s our helpful guide you can check for that:
    https://rankmath.com/kb/google-news-requirements/

    Hope that helps.

    Thank you.

    Anonymous
    Rank Math free

    I get this

    it’s not updating the last two posts at all

    The last update was the 22nd – today is the 27th. We have 4 posts since then

    Hello,

    Thank you for getting back to us. We are sorry to hear that you are facing a 404 error with your sitemap.

    This error can occur when your sitemap is not updated properly or when it is cached by your site or server. To fix this error, you need to flush your sitemap and exclude it from caching. Please follow these steps carefully:

    • First, you need to reset your WordPress permalinks. This will ensure that your site has the correct URL structure for your sitemap. To do this, go to WordPress Dashboard > Settings > Permalinks and click Save Changes without making any changes. You don’t need to change any settings here, just click the Save Changes button.
    • Next, you need to regenerate your sitemap. This will refresh your sitemap and remove any errors or outdated links. To do this, go to Rank Math > Sitemap Settings and change the Link per Sitemap to 201 or any other number, and then click Save Changes. You can change this number back later, this is just to regenerate your sitemap. You can follow this screencast to see how it’s done: https://i.rankmath.com/pipRDp
    • Then, you need to exclude the sitemap files of Rank Math from caching. This will prevent your site or server from storing an old version of your sitemap. To do this, you need to check if you have any caching plugins or services on your site, such as WP Rocket, W3 Total Cache, Cloudflare, etc. If you do, you need to follow this article to exclude the sitemap files from caching: https://rankmath.com/kb/exclude-sitemaps-from-caching/
    • Finally, you need to add a code snippet to your site to disable the sitemap transient cache. You need to add this code snippet to your site or use a plugin like Code Snippets:
    • /** 
       * 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');

      You can learn more about this error and other ways to fix it here: https://rankmath.com/kb/fix-sitemap-issues/

      We hope this helps you resolve the issue. Please let us know if this works for you or if you need any further assistance. If the issue persists, please provide us with your WordPress login details and FTP access in the Sensitive Data section below so that we can take a closer look at your site.

      Thank you for choosing Rank Math.

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

You must be logged in to reply to this ticket.