Yoast Sitemap Not Updating? 8 WordPress Checks
You publish a WordPress article, open your sitemap, and the new URL is missing. Or an old URL still appears after you edited or removed the page. If your Yoast sitemap is not updating, start by checking whether a cache is showing an older response and whether the post is eligible to appear in the sitemap.
Yoast says its XML sitemaps update automatically when content is added, edited, or deleted. Caching and custom developer filters can prevent the latest output from appearing. Yoast sitemap update troubleshooting
This guide walks through a safe troubleshooting sequence for a sitemap that looks stale, incomplete, blank, or incorrect. It also explains how to tell a browser display issue from a genuine XML or indexing problem.
Understand the sitemap index first
Yoast generates a sitemap index that links to individual sitemaps. A site may have separate sitemaps for posts, pages, categories, tags, authors, and other content types. Yoast XML sitemap guide
If a post is missing, check the post sitemap itself, not only the index. The index can be working correctly while the URL you expected belongs in a different sitemap or is excluded by a setting.
A sitemap is a discovery aid. Google says a sitemap can help it discover URLs, but it does not guarantee that every listed URL will be crawled, indexed, or ranked. Google sitemap overview
1. Open the correct sitemap URL
Start with the sitemap index generated by the SEO plugin configured on your site. Yoast’s documentation explains how to enable and view its XML sitemap from Yoast settings. It also notes that a generic sitemap address may be generated by WordPress core or another plugin instead. Yoast XML sitemap guide
If multiple plugins generate sitemaps, determine which one you submitted to Search Console. Two sitemap systems can make it unclear which file you are checking or which URL list Google has processed.
A sitemap may appear as raw XML in a browser. That alone does not mean it is broken. Search engines read the XML itself; they do not need a human-readable stylesheet. Yoast explains that some sitemap display errors relate to styling rather than the XML content. Yoast common sitemap errors
2. Confirm the post is public
A draft, private post, or password-protected article is not an ordinary public URL. Open the post in WordPress and check:
- Status is Published.
- Visibility is Public.
- It is not password-protected.
- Its post type is configured for search.
- It has not been intentionally excluded from the sitemap.
If you use a custom post type, check whether it is enabled for search results and included in the sitemap settings. Yoast says sitemap contents depend on the post types configured to appear in search. Yoast sitemap documentation
Do not make private content public just to add it to the sitemap. Decide first whether it should be available to readers and search engines.
3. Check caching at each layer
Caching is one of the main causes Yoast describes for a sitemap that appears stale. A cache plugin, host cache, server cache, or CDN may serve an older XML response. Yoast sitemap update troubleshooting
Try this sequence:
- Clear the cache in your WordPress caching plugin.
- Purge the host or server cache if your hosting panel provides that option.
- Clear the CDN cache if XML responses are cached there.
- Open the sitemap in a private browser window.
- Check whether the new URL appears in the post sitemap.
Yoast advises checking whether sitemap URLs are excluded from caching when a cache feature is responsible. If you do not know how to set an exclusion, use the cache plugin or host documentation rather than adding a broad rule that affects unrelated pages. Yoast sitemap update troubleshooting
A cache may be active even without a dedicated cache plugin. Hosting plans, performance plugins, and some themes provide caching. Check the tools already active before adding another plugin to fix a stale sitemap.
4. Review noindex and sitemap settings
A page marked noindex may be excluded from the sitemap. Yoast’s common sitemap errors guide lists noindex settings as one reason an individual URL or content type may not appear. Yoast sitemap errors
For a post, open its Yoast SEO settings and check the advanced visibility options. For an entire post type or taxonomy, review the corresponding Yoast search appearance or content settings.
Confirm that:
- The individual post is not set to noindex if it should appear in search.
- The post type is enabled for search results.
- The taxonomy is configured as intended.
- No custom filter excludes the page.
- Another plugin is not adding a conflicting robots rule.
Changing a page from noindex to index does not guarantee that Google will include it in search. It only changes a technical instruction. The page still needs to be accessible and useful, and Google decides whether to crawl and index it.
5. Inspect the canonical URL and redirects
Yoast lists a canonical URL pointing elsewhere as another possible reason a page is missing from the sitemap. If the canonical points to another page, the sitemap may omit the URL or list the preferred version instead. Yoast sitemap error guide
Review the canonical field in the post’s SEO settings. In a typical case, the page should identify its preferred public URL as the canonical. There are valid exceptions, such as consolidating duplicate versions, so do not change the canonical blindly.
Check redirects too. If you changed a slug, verify that:
- The current URL loads successfully.
- The old URL redirects to the relevant replacement.
- The sitemap lists the current preferred URL.
- Internal links use the current address.
- There is no redirect loop.
A canonical tag and a redirect solve different problems. Use a redirect when visitors should be sent from an old address to a new one. Use a canonical when you need to identify the preferred version among similar or duplicate URLs.
6. Review custom code and plugin changes
Custom code or plugin settings can alter sitemap output. Yoast notes that developer filters or custom modifications may require a manual update or review. Yoast sitemap update troubleshooting
If the sitemap stopped updating after a change, inspect that change first. Look at recently added SEO filters, custom post types, cache rules, or sitemap plugins.
Avoid disabling every plugin at once on a production site. If you need to test for a plugin conflict, use a staging copy where possible. Otherwise, change one suspected setting at a time and record the result. This gives you a path back if the sitemap or another site feature breaks.
7. Refresh permalinks if the sitemap errors
Yoast’s common sitemap errors guide lists improperly saved permalink settings as one possible cause of a sitemap problem. In WordPress, open Settings → Permalinks and save the current configuration without changing it, then test the sitemap again. Yoast common sitemap errors
Be careful if the site uses custom rewrite rules. Saving permalinks can refresh them. If the sitemap still returns a 404, ask your host or developer to review the server configuration instead of pasting a generic rewrite block into the website.
Record the exact response code and URL. A 404, blank response, and valid XML that looks unstyled are different symptoms and need different checks.
8. Check the XML response itself
A blank page, error message, or browser warning can have multiple causes. Yoast’s troubleshooting guide lists issues such as unavailable stylesheets, invalid XML, caching, and server rewrite problems. It also explains that a sitemap may display as raw XML and still be readable to search engines. Yoast common XML sitemap errors
Check:
- Does the sitemap return a successful HTTP response?
- Does it contain valid XML?
- Does the index link to the expected post sitemap?
- Does the post sitemap include the URL?
- Are the listed URLs using the correct HTTPS version and hostname?
- Is there an error message or extra text before the XML?
If you can view the raw response, compare the returned content with the expected sitemap. A styling problem in the browser does not necessarily mean the XML is invalid.
Use Search Console to check Google’s fetch
If you have access to Google Search Console, open the Sitemaps report and inspect the sitemap index. It can show whether Google fetched and processed the sitemap and the number of URLs it discovered. Yoast recommends using Search Console to check whether Google can access and process the sitemap. Yoast common sitemap errors
If Search Console reports a fetch issue, compare that report with the current public response. Check the exact sitemap URL and report date, then investigate caching, firewall rules, robots settings, or server errors as appropriate.
A successful sitemap fetch does not mean every listed page is indexed. Google says a sitemap can help it discover URLs but does not guarantee crawling or indexing. Google sitemap overview
A safe troubleshooting order
If your Yoast sitemap looks stale, follow this sequence:
- Open the sitemap index and identify the right post sitemap.
- Confirm the post is published and public.
- Check noindex and canonical settings.
- Clear plugin, host, server, and CDN caches.
- Confirm the post type is included.
- Save permalink settings if appropriate.
- Review recent code or plugin changes.
- Inspect the XML response and status code.
- Check Search Console’s Sitemaps report if you have access.
- Recheck after each change and record what resolved the issue.
This order starts with common content and caching checks before moving to custom code or server rules. It helps avoid changing several settings without knowing which one caused the problem.
Conclusion
A Yoast sitemap that appears stale may be affected by caching, post visibility, noindex settings, canonicals, redirects, rewrite behavior, or custom code. Start with the post sitemap and the post’s public status. Then clear caches and inspect the XML response before changing server rules.
A sitemap helps search engines discover URLs, but it cannot guarantee that they will be indexed or ranked. Keep the sitemap accurate, make sure the pages you want discovered are public and indexable, and use Search Console to see whether Google can fetch the sitemap.
Credible sources
Frequently Asked Questions
Why is my Yoast sitemap not updating?
Yoast says sitemaps update automatically when content changes, but caching or custom developer filters may prevent the latest output from appearing. Clear relevant caches and review recent custom changes.
Why is my new WordPress post missing from the sitemap?
Check that it is published and public, the post type is included, and the post is not set to noindex. Also inspect its canonical URL and redirect settings.
Does raw XML mean the sitemap is broken?
Not necessarily. Search engines read the XML directly. A browser styling issue can exist even when the XML itself is available.
Does submitting a sitemap guarantee Google will index my pages?
No. Google says a sitemap helps it discover URLs but does not guarantee crawling, indexing, or ranking.
Do I need to rebuild a Yoast sitemap after each post?
Usually not. Yoast says its sitemaps update automatically as content is added, edited, or deleted. Investigate caching or configuration only when you see a specific issue.
