Blog / WordPress
XML Sitemap Mistakes in WordPress
You published a new service page three weeks ago. You search for its exact title in Google and nothing shows up. The developer says the site has a sitemap, so it should be fine. Yet the page is still invisible, and so are a few older ones.
An XML sitemap is a plain list of the pages on your website that you want Google to find. On WordPress it is almost always generated by a plugin, which makes it easy to set up and just as easy to leave broken for years. This article covers the mistakes that come up most often, what belongs in the file, what should not, and how to confirm Google has actually indexed your pages.
What a sitemap does, and what it does not do
Think of the sitemap as a table of contents you hand to Google. It lists each page address, usually with the date the page last changed. Google reads it to discover pages it might otherwise miss, especially new ones and pages not linked from your menu.
It does not do two things people expect. It does not force Google to index anything: inclusion is a request, not an instruction, and Google still judges whether a page is worth adding. And it does not improve rankings by itself. A clean sitemap removes obstacles; it does not push you up the results.
Recent versions of WordPress generate a basic sitemap, and most SEO plugins replace it with a more detailed one. Hosted platforms handle this quietly, a small convenience noted in our comparison of WordPress and Shopify. On WordPress, somebody has to check the settings once.
Mistake one: more than one sitemap, and they disagree
This is common on sites that have passed through two or three developers. Each installed a preferred SEO plugin, nobody removed the old one, and the site now serves different sitemaps at different addresses. Google may keep reading the stale one, full of pages that no longer exist, and ignore the current one.
Typical sources of a duplicate sitemap:
- The built-in WordPress sitemap still running alongside the SEO plugin's version.
- Two SEO plugins active at once, often because one was installed to try a single feature.
- A static sitemap.xml file uploaded to the server years ago that never updates.
- A caching plugin serving an old copy long after pages changed.
Choose one source, usually the SEO plugin, and switch off or delete every other one. Then open the sitemap address in your browser and confirm it loads, shows today's pages, and matches the address submitted in Search Console.
Mistake two: pages that should never be in the file
A sitemap should list pages you would be happy for a stranger to land on from Google. On most WordPress sites, the default settings include a great deal that fails that test. Each junk address wastes Google's attention and blurs the signal about which pages matter.
The usual offenders:
- Media attachment pages. WordPress creates a bare page for every uploaded image, with no text and no purpose. Redirect them to the image or exclude them.
- Tag and author archives on a business site with one author and a handful of tags. They are thin copies of your blog list.
- Thank-you pages, cart and checkout pages, login pages and internal search results.
- Pages marked noindex. Telling Google not to index a page and then listing it anyway is contradictory, and Search Console flags it.
- Old addresses that now redirect, pages that return a not-found error, and http versions of pages on an https site.
Most SEO plugins let you exclude a whole content type with one toggle, and individual pages from the edit screen. Twenty minutes with the list once largely solves this.
Mistake three: the pages that earn money are missing
The opposite problem is quieter and more expensive. The sitemap loads, Search Console shows no errors, and yet your most important pages are not in it. Because nothing is technically broken, nobody looks.
This happens in predictable ways. A developer builds your services or projects as a custom content type, and the SEO plugin leaves new types out by default. Someone ticked the option to discourage search engines during the build and forgot to untick it at launch, hiding the whole site. A page was set to noindex while being written and the setting stayed.
A subtler issue is wrong last-modified dates. Some setups stamp every page with today's date, so Google learns the dates mean nothing. Others never update them, so a rewritten page looks untouched. If your plugin offers the choice, let the date reflect real edits only.
How to check what Google has actually indexed
Search Console is where you find out. It is free, and your developer or agency has almost certainly set it up. If you do not have access under your own Google account, ask for it before doing anything else.
Three places in the tool answer the sitemap question:
- The Sitemaps report. It shows which sitemap addresses were submitted, when Google last read them, and how many pages it found in each. Any status other than success needs attention.
- The Pages report under Indexing. It splits pages into indexed and not indexed, with a reason for each exclusion. Discovered but not indexed means Google knows the page and has not got to it yet. Crawled but not indexed means it looked and declined, usually because of thin or duplicate content rather than a sitemap fault.
- URL inspection. Paste one page address and Google tells you whether it is indexed, whether it was found through the sitemap, and whether anything blocks indexing. For a new page, request indexing from here.
Do this for your most valuable pages, not every page. If one shows as excluded, the listed reason is your starting point. If it shows as indexed but searching its exact title finds nothing, the sitemap is not the problem; the content and the competition are.
A quarterly routine, and when the problem is not the sitemap
Once a quarter, open the sitemap in your browser and the Sitemaps report in Search Console side by side. Check that only one sitemap is submitted, that the page count roughly matches the real pages you have, and that no junk types have crept back in after a plugin update.
If the sitemap is clean and pages are still missing, look wider. A firewall plugin set too aggressively can block Google's crawler, one reason to review WordPress security settings with indexing in mind. A robots.txt file left over from staging can disallow the whole site. And a page of copied manufacturer text may simply not be worth indexing in Google's view, however neatly it is listed.
Managing this across overlapping plugins is where most owners stop checking. If you would rather have one plugin handle SEO settings on WordPress, ExtroSEO is our answer, and the product page explains what it covers. Whichever tool you use, the test is the same: can you open your sitemap today and recognise every page in it as one a customer should find.
- One sitemap: Pick one source for the sitemap, usually the SEO plugin, and switch off every other one.
- Request, not command: A sitemap asks Google to look at a page; it does not force indexing or improve rankings by itself.
- Cut the junk: Exclude attachment pages, thin archives, checkout and thank-you pages, and anything marked noindex.
- Check the money pages: Confirm your services, products or projects are in the file, especially if they use a custom content type.
- Search Console decides: The Sitemaps report, the Pages report and URL inspection tell you what Google actually indexed and why not.
- Look wider if it is clean: A firewall, a leftover robots.txt rule or thin content can keep pages out even when the sitemap is perfect.
FAQs
Do I need an XML sitemap if my site only has ten pages?
You do not strictly need one, because Google can find ten linked pages on its own. It still helps, because it is the simplest way to see in Search Console which pages Google read and when. Since WordPress and every SEO plugin generate one automatically, the real question is whether yours is clean. On a small site that takes a few minutes to check, so there is little reason to skip it.
Should blog posts and service pages be in the same sitemap?
They can be. Most plugins create a sitemap index that points to a separate file for each content type: one for pages, one for posts, one for products. Google reads them all. The split is useful for you, because it makes it easy to see at a glance whether your service pages are listed and how many there are. There is no ranking advantage to combining or separating them.
How long after fixing the sitemap will my pages appear in Google?
There is no fixed timeline, and anyone who promises one is guessing. Google re-reads sitemaps on its own schedule, more often for sites that change frequently. You can speed up a single important page by requesting indexing in URL inspection. If weeks pass and the Pages report still lists the page as excluded, the reason it gives is more useful than waiting longer.
My developer says the sitemap is fine but pages are still missing. Who is right?
Possibly both of you. The sitemap can be technically correct while the page is kept out for another reason: a noindex setting, a firewall blocking Google, duplicate content, or a page Google judged too thin. Ask the developer to show you the Pages report in Search Console and the reason listed against the missing page. If that conversation goes in circles, get in touch and we will read the reports with you.
Want help putting this into practice?
See our ExtroSEO, or book a free discussion and we'll review your business first.
Book a Free DiscussionPrefer WhatsApp? Message us and we will reply during working hours.