- How to Fix WWW and Non-WWW Version Redirects to Improve Your SEO
- How to Fix: No H1 Heading Found on Your Homepage
- How to Fix Missing H2 Headings on Your Homepage
- Re-run Checks Button in SureRank
- Fix Critical Error: Another SEO Plugin Detected in SureRank
- Fix Warning: Site Tagline Is Not Set in SureRank
- How to Fix Multiple SEO Plugins Detected on Your Site
- How to Fix: Homepage is Not Indexable by Search Engines
- Warning: Homepage Does Not Contain Internal Links
- How to Fix Missing Alt Text on Homepage Images
- How to Fix: Search Engine Title is Missing on the Page
- Page Level SEO: Broken Links Detected
- How to Fix Missing Alt Text on Images
- How to Fix Page URLs That Are Too Long
- Page Level SEO Warning: No Links Found on This Page
- Page Level SEO Warning: No Images or Videos Found
- Page Level SEO Warning: Missing Search Engine Description
- Page Level SEO Warning: No Subheadings Found on This Page
- Page Level SEO Warning: Canonical Tag is Missing
- Page Level SEO Warning: Open Graph Tags Missing
- Customize Final Title Tag surerank_final_title
- Customize Post Type Archive Title Output surerank_post_type_archive_title
- Customize Archive Page Title with surerank_archive_title
- CustomizeModify the Search Results Page Title surerank_search_title
- Customizing the 404 Page Title surerank_not_found_title
- Customizing the Title Separator surerank_title_separator
- How to Remove Archive Prefixes from Titles Using SureRank
- Customize Homepage Pagination Format surerank_homepage_pagination_format
- Customize Maximum SEO Title Length surerank_title_length
- Enable/Disable Pagination in SureRank Archives surerank_show_pagination
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 is useful when you want to prevent certain posts from being indexed by search engines.
However, after making any changes in the Sitemap Excludes settings, it’s important to regenerate your sitemap so the changes reflect properly.
When Should You Regenerate the Sitemap?
You need to regenerate your sitemap every time you:
- Exclude or include any post type using the Sitemap Excludes setting.
- Modify existing exclusions.
Without regeneration, the changes won’t take effect, and search engines may still access outdated or undesired URLs.
How to Regenerate the Sitemap in SureRank
There are two ways to regenerate the sitemap:
1. Using WP-CLI (Recommended for Immediate Effect)
If you have access to the command line on your server, run the following command:
wp surerank generate_cache
This will instantly regenerate the sitemap and apply the latest exclusion changes.
This is the fastest way to reflect your updates in the sitemap without waiting for the scheduled cron job.
2. Wait for the Daily Cron Job
SureRank automatically regenerates the sitemap once per day using WordPress cron jobs.
If you don’t have access to WP-CLI or prefer not to run it manually, you can simply wait for the next scheduled cron job. Your sitemap will be updated automatically within 24 hours.
Note: The cron job runs once every day, so changes may take some time to reflect unless manually triggered.
Summary
| Action | Required? | Method |
| Changed Sitemap Excludes? | Yes | Regenerate Sitemap |
| Regenerate Manually? | Optional but faster | wp 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.
We don't respond to the article feedback, we use it to improve our support content.