how to update sitemap

#508529
  • Resolved Helena Velázquez
    Rank Math free

    Hello, I have perfectly configured rankmath so that the posts, pages and categories appear. But only the pages and half of the categories appear (The ones that I migrated from Yoast). The sitemap has not been updated since October. That could be happening?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    The most possible reason can be that your sitemap is heavily cached. Can you please try following the steps below to see if that works for you?

    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. If the above steps doesn’t seem to work, kindly apply the following filter code to your site.

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

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

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hola, ya he realizado las configuraciones pero sigue sin actualizarse el Sitemap. He desactivado Rankmath y activado Yoast y veo que Yoast sí que me ofrece el Sitemap actualizado. Pero yo quiero seguir utilizando Rankmath, que puedo hacer para actualizar el sitemap con Rankmath?

    Hello,

    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.

    Sensitive Data Section

    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/

    Looking forward to helping you.

    Thank you.

    Muchas gracias por una respuesta tan rápida. Te acabo de enviar acceso temporal a través del email: s******@r*********** a nombre de Sakib Khandaker.

    [MOVED TO THE SENSITIVE DATA SECTION]

    Hello,

    I’ve followed the step #3 mentioned above and your sitemap is showing updated URLs now. Please refer to the screenshot in the sensitive data section.

    However, for now, I’ve added the filter in your active theme’s functions.php file but any changes will be lost after you update your theme.

    Please follow the other stable methods mentioned in the KB below:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Genial! Pero entonces me recomiendas introducir el código mediante un plugin de Custom Code para no perder el código que has introducido en functions.php cuando actualice el template, verdad?

    Hello,

    Yes, that’s correct. You can either use the Code Snippets plugin or your child theme to keep the changes even after your theme update.

    Hope that helps.

    Thank you.

    He añadido el código en la plantilla de generatepress. Me puedes confirmar si es correcto? Gracias
    captura sitemap

    Hello,

    The filter should be added to your active theme’s functions.php.

    If you’re unable to access those, you can use the Code Snippets plugin as my colleague mentioned above.

    Let us know how this goes.

    Thank you.

    He añadido el código en functions.php del template child. Muchísimas gracias!!!

    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-post about 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.

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

The ticket ‘how to update sitemap’ is closed to new replies.