How to Activate Sitemap on WordPress Yoast SEO
What the Yoast Sitemap Does and Why It Matters
An XML sitemap is a machine-readable index of the URLs you want search engines to discover. It does not force indexing, but it dramatically speeds up discovery — especially for new sites with few backlinks, large sites where some pages sit deep in the structure, and sites that publish frequently. Yoast SEO generates this file dynamically, splitting it into a sitemap index that links to separate sitemaps for posts, pages, each custom post type and each public taxonomy, with up to 1,000 URLs per file and automatic last-modified dates.
Because Yoast builds the file from your live content, it stays accurate without maintenance. Publish a post and it appears; delete one and it disappears. The catch is that Yoast will happily include content you do not want indexed, so activating the sitemap is only half the job — configuring what belongs in it is what actually improves your crawl efficiency.
How AAMAX.CO Can Help With Your SEO
Getting a sitemap live is straightforward; making sure WordPress is not quietly leaking crawl budget through tag archives, attachment pages and thin custom post types is where most sites need help. At AAMAX.CO, a full-service digital marketing company offering web development, digital marketing and SEO services worldwide, we audit WordPress installations end to end — plugin conflicts, indexation rules, redirect handling, Core Web Vitals and content structure — then implement the fixes and monitor the results in Search Console. If your pages are slow to get indexed or your sitemap is full of URLs that should not be there, hire our team to sort it out properly.
Step 1: Confirm Yoast SEO Is Installed and Updated
From your WordPress dashboard, go to Plugins and confirm Yoast SEO is installed and active. If it is not, choose Add New Plugin, search for Yoast SEO, install and activate it. Always run the current version — sitemap behaviour and settings locations have changed across releases, and an outdated plugin can conflict with newer WordPress core features.
Also make sure only one SEO plugin is generating sitemaps. Running Yoast alongside Rank Math, All in One SEO or a standalone sitemap plugin produces competing files and confusing signals. Deactivate the extras before continuing.
Step 2: Enable the XML Sitemap in Yoast Settings
In the left sidebar, open Yoast SEO → Settings. Under the Site features section (called APIs or Features in older versions), locate XML sitemaps and switch the toggle on. Click Save changes. Yoast provides a small question-mark link beside the toggle that opens your sitemap index directly — use it to confirm the file is generating.
Your sitemap index will normally live at https://yourdomain.com/sitemap_index.xml. Open it in a browser. You should see a styled list of child sitemaps such as post-sitemap.xml, page-sitemap.xml, category-sitemap.xml and any custom post type files. If it loads, the sitemap is active.
Step 3: Control What Appears in the Sitemap
Yoast decides sitemap inclusion based on whether content is set to appear in search results. Go to Yoast SEO → Settings → Content types and review each post type. For anything that should not be indexed — such as internal-only custom post types — set Show in search results to Off, and it will drop out of the sitemap automatically.
Then open Categories and tags. Most WordPress sites should keep categories indexable, because they act as useful topic hubs, but disable tags unless you have deliberately built curated tag pages with unique content. Also disable Format archives and, on single-author sites, Author archives, since they duplicate your blog listing. Under Media, ensure attachment pages redirect to the file itself — leaving them enabled creates a thin URL for every image you have ever uploaded.
For individual pages, you can exclude a specific URL by editing it, opening the Yoast box, going to the Advanced tab and setting Allow search engines to show this content in search results? to No. That applies a noindex tag and removes the page from the sitemap in one action.
Step 4: Submit the Sitemap to Search Console and Bing
Open Google Search Console and select your verified property. In the left menu choose Sitemaps, enter sitemap_index.xml in the field and click Submit. Google will report the status, the number of discovered URLs and the date it was last read. Repeat the process in Bing Webmaster Tools under Sitemaps → Submit sitemap using the full URL.
Yoast also adds a sitemap reference to your robots.txt automatically, which helps other crawlers find it. You can confirm by visiting https://yourdomain.com/robots.txt and looking for a line beginning with Sitemap:.
Troubleshooting Common Sitemap Problems
If your sitemap returns a 404, the usual cause is permalink rewrite rules. Go to Settings → Permalinks and click Save Changes without altering anything — this flushes the rewrite cache and fixes it in most cases. If it persists, temporarily deactivate other plugins to find a conflict, most often with caching, security or another SEO plugin.
If the sitemap loads as raw XML with no styling, that is a cosmetic XSL issue caused by a caching layer or a security plugin blocking the stylesheet; search engines still read the file correctly. If pages you expect are missing, check that the post type is set to show in search results, that the individual page is not set to noindex, and that the URL is not being canonicalized elsewhere. If Search Console reports "Couldn't fetch", exclude the sitemap from your caching plugin and any firewall rule, then resubmit.
What to Do After the Sitemap Is Live
A sitemap accelerates discovery, but it does not guarantee indexing — that still depends on content quality, internal links and site authority. Check the Pages report in Search Console a week later and compare discovered URLs against indexed ones. Pages that are "Crawled — currently not indexed" usually need stronger internal linking, more substantial content, or consolidation with a related page.
Make the sitemap part of a routine. Review it quarterly to confirm no unwanted content types have crept back in after a plugin or theme update, watch for sudden jumps in URL count that suggest a new post type or archive was exposed, and keep an eye on the last-read date to confirm crawlers are still fetching it. Handled this way, your sitemap becomes a reliable, low-maintenance part of a healthy WordPress SEO setup — and if you would rather have specialists own that maintenance, we are here to help.
Want to publish a guest post on aamax.co?
Place an order for a guest post or link insertion today.
Place an Order