# XML Sitemap for WordPress

> Tune WordPress’s built-in sitemap: choose what’s included, drop noindexed pages, add last-modified dates and serve it at /sitemap.xml. Part of Toggleworks…

TW-SEO-10 SEO


Tune WordPress’s built-in sitemap: choose what’s included, drop noindexed pages, add last-modified dates and serve it at /sitemap.xml.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

XML Sitemap

**Part number**
: TW-SEO-10
**Section**
: [SEO](https://togglework.app/features/seo/)
**Settings**
: 6 (3 on/off)
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

A sitemap lists the pages you want search engines to index and when each last changed. WordPress has generated one since version 5.5, but it includes things you may not want indexed, has no last-modified dates, and lives at /wp-sitemap.xml, where many tools don’t look.

### What it does

- Chooses which post types and taxonomies are included.
- Leaves out pages you have set to noindex, and post IDs you exclude.
- Adds last-modified dates.
- Redirects /sitemap.xml and /sitemap\_index.xml to it.

![XML Sitemap settings screen in the Toggleworks WordPress plugin, showing Include post types, Include taxonomies, Include author pages, Add last-modified dates](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/seo-sitemap.webp?v=1795524252)

The XML Sitemap screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Switch XML Sitemap on and choose what to include.
2. Open /sitemap.xml to check it.
3. Submit it in Google Search Console and Bing Webmaster Tools.

## What you can set

Switch XML Sitemap on in Toggleworks → SEO, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Include post types Posts · Pages · Products
- Include taxonomies Categories · Tags · Formats · Product brands · Product categories · Product tags
- Include author pages
- Add last-modified dates
- Exclude post IDs
- Redirect /sitemap.xml and /sitemap\_index.xml to it

## Good to know

- Leave author pages out on single-author sites, and tags out if you use many tags with few posts each.

[Guide: The technical WordPress SEO checklist](https://togglework.app/guides/wordpress-seo-checklist/)

## One less plugin to install

XML Sitemap does a job people often install a separate plugin for:

- An XML sitemapOften done with Yoast SEO
- Sitemaps and schemaOften done with Rank Math

## Comes with 187 more parts

XML Sitemap is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 11 SEO parts](https://togglework.app/features/seo/)

### People also look for it as

- sitemap
- xml
- google search console
- indexing

## Often switched on with it

- [Search Console](https://togglework.app/features/seo/search-console/) — TW-SEO-09 · Connect Google Search Console to see clicks, impressions, average position and top search queries for every page — in the posts… · 4 settings
- [Bricks Builder Tweaks](https://togglework.app/features/bricks/builder-tweaks/) — TW-BRX-01 · Work faster in Bricks: a BEM class generator, a variable picker with var() and calc() suggestions in every input, toolbar at the… · 8 settings
- [Broken Link Checker](https://togglework.app/features/seo/broken-links/) — TW-SEO-01 · Checks every link in your posts and pages in the background and lists the broken ones, with one-click unlink or redirect. · 4 settings
- [External Links](https://togglework.app/features/seo/external-links/) — TW-SEO-02 · Add nofollow to links that leave your site and open them in a new tab, safely. Choose the post types, and list domains you trust… · 5 settings
- [IndexNow](https://togglework.app/features/seo/indexnow/) — TW-SEO-03 · Pings Bing, Yandex and other IndexNow search engines the moment you publish, update or delete a page, so changes show up in… · 1 setting
- [Local SEO](https://togglework.app/features/seo/local-seo/) — TW-SEO-05 · Tell Google where you are and when you’re open: local business schema for one or many locations, plus shortcodes for address… · 16 settings

## Questions

**Is XML Sitemap included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, XML Sitemap among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does XML Sitemap slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on XML Sitemap only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try XML Sitemap before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/seo/sitemap/
