I cant update my post sitemap

#151947
Viewing 7 replies - 1 through 7 (of 7 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    As you mentioned that the posts are private, then automatically a noindex meta tag is added to the post/page. This is the reason your posts are not included in the sitemap.

    For posts to be automatically included in the sitemap they should be set to index.

    However, if you want to keep your posts to private and want them to be added to the sitemap, add this filter in the function.php file.

    /**
    * Filter to add <code>noindex</code> URLs in the Sitemap
    *
    * @param bool $value Whether to include noindex terms in Sitemap.
    * @param string $type Object Type.
    *
    * @return boolean
    */
    add_filter( 'rank_math/sitemap/include_noindex', function( $value, $type ) {
    	return true;
    }, 10, 2 );

    I hope this helps. Looking forward to helping you.

    Hi guys,

    All the posts were published and now are index. But still not in the sitemap. Any comments?

    Anas
    Rank Math business

    Hello,

    Can you please follow these steps?
    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/

    That should fix the issue. Please let me know if that does not. We are here to assist.

    Hi guys,

    I did this but it still not working. Any other idea?

    Anas
    Rank Math business

    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.
    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/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for keeping in touch with us.

    Upon checking your admin settings, it seems like you have a lot of outdated plugins that might be causing this issue and Rank Math is one of the outdated plugins.

    Can you please create a backup of your site and manually update your Rank Math plugin? You may download the latest file here: https://wordpress.org/plugins/seo-by-rank-math/

    If you prefer us to update the plugin ourselves, please create a backup of your site and let us know.

    We are looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘I cant update my post sitemap’ is closed to new replies.