Technical Guide

Wordpress

WordPress Sitemap: Find It, Check It and Fix Common Errors

Find the active sitemap and follow one URL from the index through a child file to its published page.

Topic: WordpressBy SearchGlint Editorial Team6 min read
On this page

To find your WordPress sitemap, check /wp-sitemap.xml for the native WordPress output or open the sitemap link in your SEO plugin. Then open one child sitemap and verify a real page inside it. A working index file alone does not establish that the right URLs are being listed.

Work through discovery, access, contents and submission in that order. This keeps a missing article separate from an XML error or a Search Console fetch problem.

Find the sitemap your site actually generates

Start with these two common implementations:

Where to look for a WordPress XML sitemap
Implementation Usual index path How to confirm it
WordPress core /wp-sitemap.xml Open the index and inspect its child sitemap URLs.
Yoast SEO /sitemap_index.xml Use the XML sitemap link in Yoast’s Site features settings.
Another plugin or custom setup Check that implementation’s settings Follow its generated link and inspect the response.

WordPress introduced its native sitemap feature in version 5.5. Its core development reference describes the index and providers. A plugin can supply different output, so a native address redirecting to a plugin index is not automatically a fault.

Also open /robots.txt and look for a Sitemap: declaration. Treat it as a pointer to inspect. A stale declaration can survive a plugin change, and its absence does not establish that no sitemap exists.

View or enable the Yoast SEO sitemap

For a site using Yoast SEO, open Yoast SEO → Settings → Site features. Under Technical SEO, find XML sitemaps. If Yoast is the intended sitemap generator, enable that feature and select View the XML sitemap.

Yoast SEO Site features screen with the XML sitemaps toggle enabled and a View the XML sitemap button.
Source: Yoast documentation.

Check the live link rather than editing a separate XML file by hand. Yoast’s sitemap reference explains that its index and child sitemaps update with content changes and reflect supported indexation settings.

If two tools generate competing lists for the same content, establish which implementation you intend to maintain. Before disabling one, compare its exclusions, custom post types and referenced sitemap address. Multiple complementary sitemaps can be legitimate; two different configurations claiming to own the same ordinary post list make troubleshooting harder.

Check the index, one child file and one article

A sitemap index lists other sitemap files. Those child files list page URLs. To check a specific article, follow the child file for its content type and search for the article’s complete canonical URL.

  1. Open the index as a public visitor. Confirm that you receive XML rather than a login page or an HTML error.
  2. Follow a child sitemap, such as the post sitemap, and confirm it also returns usable XML.
  3. Find one recently published article in that child file.
  4. Open the listed article. Check its final URL, content, HTTP response and indexation directives.
  5. Compare its declared canonical with the URL in the sitemap.

A 200 response can contain an error page, so inspect the response body as well as the status. If the sitemap looks blank in a browser, view its source or download the XML to distinguish an empty response from a display or stylesheet problem.

A real WordPress sitemap check on SearchGlint

In our October 24, 2026 check, SearchGlint’s /sitemap_index.xml returned XML and listed post, page, news and tool sitemaps. Requesting /wp-sitemap.xml resolved to that same Yoast index.

The post sitemap contained https://www.searchglint.com/wordpress/core-web-vitals/. That article returned 200 and declared that same URL as canonical. These checks connect the generator, child file and intended page:

Observed sitemap checks on SearchGlint
Check Observed result
Index /sitemap_index.xml returned 200 with XML content.
Content-type sitemap /post-sitemap.xml included the CWV article’s full URL.
Listed article The article returned 200 at that URL.
Canonical The article declared the listed URL as its preferred address.

Repeat that small chain on your own site. It reveals more than checking whether a sitemap settings toggle is switched on.

Decide which URLs belong in the sitemap

Use the sitemap to list the public URLs you want search engines to consider for search results. Google’s sitemap guidance calls for complete absolute URLs and recommends the preferred canonical versions.

For a WordPress editorial site, review the configuration against the content you publish:

  • Include the preferred URLs of useful, published articles and pages.
  • Exclude drafts, private content and routes that deliberately remain noindex.
  • Remove retired addresses that now redirect to a replacement.
  • Review category, tag and author archives according to their actual public purpose.
  • Check whether custom post types need their own entries.

Do not add every archive merely to increase the URL count. A maintained author profile may be useful; an empty tag archive is a different proposition. Keep the list consistent with the site’s own canonical decisions and indexation controls.

Fix the error you actually receive

The sitemap returns 404

Confirm the active generator and its exact link first. A guessed path can fail while the intended sitemap works. If the documented link also fails, compare it with a normal published page and review the generator, WordPress routing and host rewrite configuration.

For native WordPress output, check the site’s search-engine visibility setting. Core sitemaps are disabled when the site is marked non-public. Make that setting agree with the environment’s purpose; keep a private staging site private.

The response is HTML, a login screen or a server error

Inspect the body and headers. A security challenge, authentication requirement or maintenance response can prevent a crawler from receiving XML. Identify the layer producing that response, then apply a targeted correction through the host or tool that owns it.

For a 5xx error, use the corresponding server or PHP log entry to narrow the cause. Repeatedly submitting the sitemap cannot repair a failing generator.

The XML cannot be parsed

Look for PHP warnings, extra text or malformed markup in the raw response. Test suspected custom output or plugin conflicts on a staging copy. Removing the visible browser error message is insufficient if the downloaded XML still contains invalid content.

A published page is missing

Verify its publication state, content type and SEO exclusion settings. Search every relevant child file if the list is split across multiple files. Compare the result with another published page of the same type. If the generator’s settings are correct but the output is stale, inspect the relevant cache before changing indexation rules.

Yoast may send X-Robots-Tag: noindex, follow on the XML response itself, as its documentation describes. Check the listed article’s own directives separately; an XML response header does not establish that the article is noindex.

Submit the verified index in Search Console

Choose the Search Console property for the site you checked. Open Sitemaps, enter the verified index URL or the path the interface requests, and submit it. Use the report’s details to investigate a fetch or parsing failure. Google’s Sitemaps report reference explains the available statuses and access requirements.

A Success status means Google fetched and read the file. For a specific article, use URL Inspection and the page’s indexing information to investigate what happened next. Sitemap processing and page indexing are separate checks.

After publishing, moving or excluding an article, revisit its child sitemap and final page. Maintain normal links to the article too: a sitemap supplements the internal linking structure. Our general XML sitemap checklist covers the wider inclusion decisions; this guide is the WordPress implementation check.

Sources

Written by SearchGlint Editorial Team

How we research and review our guides