Symptoms
- New pages are missing from sitemap.
- Deleted URLs remain listed.
- Robots.txt points to the wrong sitemap.
- Search tools report sitemap fetch or parsing issues.
Problem
Troubleshoot stale WordPress sitemaps by checking cache, SEO plugin ownership, robots references, canonical URLs, noindex rules, and generated sitemap output.
On this page
Symptom
Search engines or users are seeing an old, incomplete, or incorrect sitemap.
Who this is for: Site owners and SEO teams reviewing search discovery problems.
Diagnosis
When a WordPress sitemap is not updating, compare the sitemap URL advertised in robots.txt, the URL submitted in Search Console, and the XML opened on the public site. These can be different files after a plugin change or rebrand. WordPress core uses a file named `wp-sitemap.xml` at the site root; an SEO plugin or custom route may publish a different URL. If the root is an index, open the child sitemap for the affected content type. Record one new page that should appear and one retired URL that should disappear so the fix has two concrete checks.
Fetch the final public sitemap after redirects and note its response status, content type, and loc entries. If origin XML lists the new page but the public CDN copy does not, investigate the cache before changing publication settings. If both copies omit it, inspect the generator's content-type rules, publication status, and exclusions. A missing page may be a draft, noindex, or canonical variant rather than a stale file; purging a cache cannot fix those source decisions.
WordPress core, an SEO plugin, and custom routes can each publish a sitemap. Identify the URL actually linked from robots.txt and used in Search Console, then decide which generator should own each content type. Avoid disabling an existing generator until the replacement sitemap is reachable and contains the intended public URLs.
For one affected page, compare the sitemap loc with its final public URL, canonical annotation, robots directive, and internal links. A sitemap is a weaker canonical hint than a redirect or rel=canonical annotation. Correct the source of a mismatch rather than adding every URL variant to XML. Keep private, redirected, draft, and intentionally noindex pages out of the submitted sitemap.
After the generator or cache fix, fetch the public sitemap again and confirm the chosen new URL appears and the retired URL no longer does. Check one child sitemap if the root is a sitemap index. Record the responsible plugin or route, what changed, and the rollback point. Search Console can confirm Google's later processing, but a successful submission does not guarantee indexing of every listed page.
Diagnosis
Escalate to SEO plugin or host/CDN support when generated XML and cached XML differ.
Coverage
References
Editorial trust
Problem, cause, fix, verify
Problem
Search engines or users are seeing an old, incomplete, or incorrect sitemap.
Audience
Site owners and SEO teams reviewing search discovery problems.
First check
When a WordPress sitemap is not updating, compare the sitemap URL advertised in robots.txt, the URL submitted in Search Console, and the XML opened on the public site. These can be different files after a plugin change or rebrand. WordPress core uses a file named `wp-sitemap.xml` at the site root; an SEO plugin or custom route may publish a different URL. If the root is an index, open the child sitemap for the affected content type. Record one new page that should appear and one retired URL that should disappear so the fix has two concrete checks.
Verify
After the generator or cache fix, fetch the public sitemap again and confirm the chosen new URL appears and the retired URL no longer does. Check one child sitemap if the root is a sitemap index. Record the responsible plugin or route, what changed, and the rollback point. Search Console can confirm Google's later processing, but a successful submission does not guarantee indexing of every listed page.