Hello,
I’m sorry to hear about the issue you’re facing with the empty sitemaps on your site after deleting posts. To address this problem, you can follow these steps:
-
Regenerate Sitemaps: You can try regenerating the sitemaps to ensure they reflect the current state of your website. To do this with Rank Math:
- Head to your WordPress Dashboard and navigate to Rank Math > Sitemap Settings.
- Click on the Save Changes button without making any modifications. This action will trigger Rank Math to regenerate the sitemaps based on the current content of your site.
-
Exclude Empty Sitemaps: If regenerating the sitemaps doesn’t resolve the issue, you can exclude specific post types or categories from being included in the sitemap. Here’s how you can exclude post terms:
- Go to Rank Math > Sitemap Settings > Exclude Post Terms.
- Select the post terms (categories or tags) you want to exclude from the sitemap.
- Save your changes.
If you continue to face difficulties or need further assistance, please feel free to reply here, and a human agent from our support team will assist you promptly.
Thank you for reaching out with your concern.
Sources:
Remove Blank Lines From Sitemaps » Rank Math
Remove Blank Lines From Sitemaps » Rank Math
What Are the SEO Benefits of Sitemaps? » Rank Math
How to Configure Sitemaps in Rank Math – Best Settings and Tips
How to Configure Sitemaps in Rank Math – Best Settings and Tips