|
/ Documentation /Sitemaps/ How to Regenerate the Sitemap After Excluding a Post Type in SureRank

How to Regenerate the Sitemap After Excluding a Post Type in SureRank

SureRank offers a Sitemap Excludes feature that allows you to Exclude Post Type from appearing in your XML sitemap. This removes the selected post type from the sitemap, but search engines may still discover and index its pages through other links. To prevent indexing, use a noindex directive and allow search engines to crawl the page.

After changing Sitemap Excludes, save your settings and check the sitemap index and the relevant child sitemap. If the output is stale, clear any page, server, or CDN cache and use the available regeneration method below.

image

When Should You Regenerate the Sitemap?

Check the published sitemap after you:

  • Exclude or include any post type using the Sitemap Excludes setting.
  • Modify existing exclusions.

If excluded URLs still appear, check caching and regenerate when the option is available. Exclusion from a sitemap does not itself prevent indexing.

How to Regenerate the Sitemap in SureRank

The available update method depends on your SureRank version and sitemap generation mode.

1. Using WP-CLI

If you have access to the command line on your server, run the following command:

wp surerank generate_cache –force

This requests a forced cache rebuild. Check the resulting sitemap after processing completes.

If your SureRank Sitemaps settings show a Regenerate button, you can use it to start a manual rebuild instead.

2. Scheduled background generation

In background generation mode, SureRank uses scheduled WordPress cron events to rebuild the sitemap.

A scheduled event can refresh the sitemap when WordPress cron runs. Low traffic, disabled cron, or cron failures can delay it. Check the sitemap after the event runs.

On-the-fly generation builds missing sitemap pages when they are requested. If your site uses background generation and the output stays stale, check your cron configuration or use an available manual method.

Summary

ActionRequired?Method
Changed Sitemap Excludes?YesRegenerate Sitemap
Regenerate Manually?Optional but fasterwp surerank generate_cache via WP-CLI
Auto Regeneration?Yes (every 24 hours)Via WordPress cron

By following the above steps, you can ensure that your sitemap remains clean, accurate, and SEO-optimized according to your exclusions.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top