Some articles are not in sitemap.

#940817
  • Resolved Il girone dei golosi
    Rank Math free

    I see some articles aren’t in sitemap. But sitemap seems ok.

    What could be the problem?

    Ex this is not in sitemap: [moved to sensitive data section]

    Ty a lot.
    Vincenzo

Viewing 6 replies - 1 through 6 (of 6 total)
  • UPDATE

    Deleting article and publishing again same url, all goes well.

    But problem stands.

    Some articles not in sitemap and categories are only 2 in file on sitemap instead of 12. Seems so strange. Button is on “index” and google see them. Only they don’t appear in sitemap. Tried to reset setting too and didn’t go.

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    From your description, it appears that your sitemap is heavily cached. To fix that, please follow the steps below:

    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/

    3. Apply the following filter code to your site.

    
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how that goes.

    Almost… now sitemap has been accepted. Success and no more “don’t fetch”.

    I see all ok in search console… discovered…11 category links and 275 posts. That’s right.

    But when open https://ricetteromane.it/category-sitemap.xml

    I see only 2 categoriy links instead of 11. Only 262 in posts instead of 275.

    P.s.: cache deleted and put your code in my file.

    Hello,

    In this case, please follow our guide here for the common reasons why URLs are not getting included in the sitemap:
    https://rankmath.com/kb/url-not-in-sitemap/

    Looking forward to helping you.

    Ok. Found the problem. Fixed www in canonical, but then changed in without www and this affected sitemap. Now all is ok.

    Hello,

    Glad that everything has been sorted out.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

You must be logged in to reply to this ticket.