Pages missing from a WordPress XML file usually point to the wrong file, an exclusion setting, a non-public page or stale cached output. Start with one affected page, the missing sitemap URL, and establish whether it’s absent from the XML, missing from Google, or both.
For a small business, the priority is getting important service and contact pages discoverable without exposing private content. Follow these checks in order, changing one setting at a time.
Key takeaways
- Search inside the relevant child sitemap, because the sitemap index usually lists files rather than individual pages.
- Resolve publication, noindex, canonical and exclusion settings before clearing caches or submitting anything.
- Treat sitemap inclusion and Google indexing as separate checks. Neither submission nor an indexing request guarantees search visibility.
1. Find the sitemap that actually lists your pages
Identify the active generator
WordPress has included built-in XML sitemap functionality since version 5.5, usually at /wp-sitemap.xml. However, an SEO plugin can replace that output.
Yoast commonly uses /sitemap_index.xml. Other plugins can use different paths, so open the sitemap from the active plugin’s settings rather than guessing.
SEOPress Free and PRO automatically disable the native WordPress XML sitemap. Therefore, an unavailable /wp-sitemap.xml doesn’t necessarily mean anything is broken.
Also open Settings > Reading. Selecting “Discourage search engines from indexing this site” can disable the core sitemap. Remove that restriction only when the production website should be publicly searchable.
Open the relevant child file

A sitemap index contains links to child files. Open the pages sitemap for a service page, or the appropriate posts or custom-post-type sitemap.
Use your browser’s Find command to search for the page’s slug. If the browser presentation is unclear, view the XML source and inspect the <loc> entries.
Check every relevant numbered child file. A URL can sit in a later file rather than the first one.
2. Confirm the page is public and indexable
Check publication and visibility
Open Pages > All Pages, then edit the affected page. Confirm it’s a published page, not a draft, pending page or scheduled page.
A private page doesn’t belong in a public sitemap. A page that is password protected is also commonly excluded by SEO plugins, although core and customised sitemap behaviour can differ.
Next, open the permalink whilst logged out. A login screen, password prompt, redirect or 404 needs attention before sitemap troubleshooting.
Confirm you’re editing production, not staging. After a migration, an old dashboard can still look convincing.
Look for noindex instructions
Inspect the page’s HTML source for a robots meta tag containing noindex. Also inspect response headers for an X-Robots-Tag restriction.
SEO plugins normally remove pages carrying that directive from their sitemaps. However, core WordPress and custom generators don’t necessarily interpret every restriction identically.
Only remove that directive when the page should appear in search. Thank-you pages, internal workflows and duplicate campaign pages may be excluded deliberately.
Record the original setting before changing it, especially on clients’ websites.
3. Review SEO plugin exclusions
Fix page-level and content-type settings
In Yoast SEO, edit the page and open Advanced. For a page intended for search, set “Allow search engines to show this content in search results?” to Yes. Yoast’s content exclusion guidance explains how this setting affects sitemap inclusion.
Also review Yoast’s content-type settings. A restriction covering all Pages or a custom post type can exclude an entire group.
In Rank Math, review the page’s Advanced robots settings and Sitemap Settings for excluded posts and disabled post types.
In SEOPress, review page-level indexing settings and SEO > XML / HTML Sitemap for enabled content types and exclusions.
If plugin settings look correct, custom web development code may be filtering sitemap queries. Investigate that on staging rather than disabling plugins on a live lead-generation website.
Distinguish news sitemaps from standard XML
A news sitemap isn’t a complete publishing archive. Yoast includes posts published within the past 48 hours; SEOPress describes the window as two days.
Older articles should remain eligible for the normal posts sitemap. Consequently, disappearance from a news sitemap alone doesn’t establish a fault.
4. Match the canonical URL and crawl rules

Compare the exact address
Inspect the page’s rel="canonical" tag to confirm its canonical URL. SEO plugins such as Yoast can exclude a page when its canonical points elsewhere. Only the preferred address should normally appear.
Compare the scheme, hostname and path, including HTTPS versus HTTP, www versus non-www, and trailing slashes. The page might already appear under another version.
Open the requested address and note its final destination. If it redirects, search the sitemap for that destination instead.
After a site move, incorrect domain settings can generate old addresses throughout the XML. Correct the underlying configuration before manually editing individual canonicals.
Preserve intentional subdirectory installations when reviewing Settings > General.
Separate robots.txt from noindex
A robots.txt block controls crawling. It doesn’t necessarily remove a URL from a sitemap or prevent Google from indexing an address discovered elsewhere.
Inspect /robots.txt for rules blocking the affected path, then remove unintended restrictions.
However, don’t block crawling as a substitute for that restriction. Google needs access to read a page’s noindex instruction.
A URL can appear in your sitemap whilst robots.txt prevents Google from fetching it. Sitemap inclusion doesn’t override crawl restrictions.
5. Refresh sitemap routing and cached output
Resolve 404 or HTML responses
If the sitemap returns a 404 error, open Settings > Permalinks and select Save Changes without altering the structure. This refreshes rewrite rules and fixes many sitemap routing failures.
Our guide to WordPress permalink 404 errors covers persistent routing problems.
For an “HTML page” error, inspect the actual response. A browser’s styled XML display is normal; a homepage, login form or security challenge replacing the XML isn’t.
Yoast’s XML sitemap error guidance covers common response problems. Check security rules and redirects before repeatedly regenerating files.
Purge each cache layer
Clear the WordPress caching plugin, web hosting cache and CDN cache separately. A private browser window doesn’t bypass a stale response stored at the host.
Exclude the sitemap index and child XML files from full-page caching and HTML optimisation. Match every sitemap path, not just the index.
Our guide to fixing stale WordPress pages explains the separate cache layers.
Then reopen the same child sitemap and search again. A stale sitemap may still omit saved eligibility changes on a fresh request if caching or scheduled generation delays the response. There isn’t a universal waiting period.
6. Validate the fix in Google Search Console
Read the complete sitemap status
First confirm the corrected URL appears in the live XML. Then open Sitemaps in Google Search Console and submit the working sitemap index if needed.
Open the Sitemaps report rather than stopping at its headline status. Read the full error, affected file or URL, and last-read date.
“Couldn’t fetch”, parsing errors and an HTML response require different repairs. Also confirm you’re viewing the correct property: a non-www URL-prefix property doesn’t cover the separate www address.
Our Google Search Console setup guide explains property selection and submission.
Inspect the important page
Paste the page’s full preferred address into URL Inspection. Review its indexing status, last crawl, crawl permissions and Google’s selected canonical.
Next, run Test live URL. The live test checks present access; the indexed record describes Google’s earlier findings.
After repairing an important page, follow Google’s process for requesting another crawl. Sitemap submission remains a hint, not an indexing instruction.
Google’s reports won’t necessarily update when your sitemap does. Compare the repair date with the last crawl and report dates instead of repeatedly submitting unchanged URLs.
Finally, add relevant internal links. For local SEO, prioritise genuine service-area pages, main services and contact routes, then compare search activity with real enquiries.
Frequently asked questions
Does sitemap inclusion guarantee Google indexing?
No. A sitemap helps discovery, but Google can still exclude a listed page because of duplication, access restrictions or content assessment.
Crawling, indexing and ranking are separate stages. If URL Inspection says the page is indexed, investigate search demand, relevance and competition rather than treating the sitemap as broken.
What if the page is missing from WordPress itself?
Look in Pages > Trash and restore it if available, then review its publication and indexing settings.
If the page was permanently deleted, recovery requires an appropriate backup. That’s a content-recovery task, not a sitemap repair. Restoring an entire database can overwrite newer enquiries or orders.
Should customer workflow pages appear publicly?
Usually not when they contain private material or exist only for internal processes. Use authentication for confidential information.
Noindex and sitemap exclusion aren’t access controls. Public campaign landing pages need a separate decision based on whether organic search discovery is useful.
Keep the fix focused on the affected URL
A missing sitemap entry is easiest to diagnose by tracing one page through publication, SEO rules, canonical selection and cached output. Confirm the corrected XML before asking Google to revisit it.
Then monitor indexing and real enquiries, rather than treating a successful submission as the finish line. Include these checks in website care and maintenance after launches, migrations and major updates.
See how we collaborate with creative agencies on technical website support and ongoing care.