How do WordPress SEO plugins control XML sitemaps?

WordPress SEO plugins automatically generate and manage XML sitemaps by listing your site’s important, indexable URLs for search engine crawlers. They can also exclude unsuitable content, organise URLs into separate sitemap files and keep the files updated as your site changes.

WordPress SEO plugins control XML sitemaps by generating a structured list of the URLs that search engines should discover and consider for indexing. They usually create a sitemap index containing separate sitemaps for posts, pages, categories, tags, authors or custom post types, then update those files automatically when content is published, edited or removed.

An XML sitemap is designed for crawlers rather than website visitors. It provides URLs in a machine-readable format and can include supporting information such as the date a page was last modified. Search engines use this information as a discovery and prioritisation signal, but inclusion in a sitemap does not guarantee that a URL will be crawled or indexed. Search engines still assess the page’s quality, accessibility, canonical status and usefulness independently.

How the sitemap is generated

Once an SEO plugin is active, it normally registers a sitemap location with WordPress and makes the XML files available automatically. The main file is often a sitemap index, which points to smaller sitemap files grouped by content type. This structure makes large websites easier to process and allows the plugin to add or remove URLs without creating one unmanageable file.

The plugin usually detects WordPress content from its database, including published pages and posts. Depending on the site configuration, it may also identify custom post types, product records, media attachments, author archives and taxonomy archives such as categories or tags. The exact sitemap structure depends on the plugin, the active theme and the site’s content model.

Which URLs are included

A well-configured plugin aims to include URLs that are public, indexable and useful to searchers. Typical inclusions are:

  • Published pages that form part of the site’s information architecture.
  • Published posts, articles or other valuable content records.
  • Relevant custom post types, such as services, case studies or resources.
  • Taxonomy archive pages where those archives provide useful, distinct content.
  • URLs that return a successful response and are intended to appear in search results.

Drafts, private content, password-protected pages, trashed items and many attachment pages are normally excluded. A plugin may also omit thin archives, internal search results, date archives or other automatically generated pages that offer little standalone value. Excluding these URLs reduces noise and gives crawlers a clearer representation of the site’s important content.

How URLs are excluded

Most plugins provide settings for controlling entire content types. For example, you may be able to remove all author archives, tag archives or a particular custom post type from the sitemap. More detailed controls may allow an individual post, page or term to be marked as unsuitable for indexing.

Common exclusion decisions include removing:

  • Pages set to noindex because they are not intended to appear in search results.
  • Duplicate or near-duplicate archive pages.
  • Utility pages, such as internal search results, login pages or temporary landing pages.
  • Attachment URLs that do not contain meaningful standalone content.
  • Content that is obsolete, private, incomplete or replaced by another URL.

A URL marked noindex should not normally remain in the XML sitemap. The sitemap should describe the preferred set of indexable URLs, while the robots meta directive communicates whether a page should be indexed. These controls serve different purposes: a sitemap helps discovery, whereas noindex is an indexing instruction. Removing a URL from the sitemap does not by itself remove it from search results if search engines already know about it through links or previous crawls.

How plugins handle canonical URLs and redirects

Plugins generally try to list the final, preferred version of a URL rather than redirected, duplicated or non-canonical versions. If several URLs display the same content, the sitemap should normally contain the canonical URL only. Redirect destinations should also be preferred over the old URLs.

This makes sitemap auditing useful for identifying technical inconsistencies. A sitemap containing redirected URLs, URLs returning errors or pages with a different canonical URL can indicate that content settings, redirects or plugin rules need reviewing. These issues do not always prevent crawling, but they make the sitemap less precise and can waste crawl activity.

How the sitemap stays updated

WordPress SEO plugins normally update sitemap output dynamically rather than requiring you to create a new file manually. Publishing a page can add its URL, changing a post’s publication status can remove it, and deleting or redirecting content can alter the relevant sitemap. The last-modified value may also be refreshed when the content changes, although it should reflect a meaningful update rather than routine administrative activity.

Caching can affect what you see during testing. A caching layer, content delivery system or server configuration may temporarily serve an older sitemap after a change. If an expected update does not appear, clear the relevant caches and check the sitemap again in a private browser window. Also confirm that another plugin, theme function or server rule is not generating a second sitemap or overriding the intended output.

Controlling post types and taxonomies

WordPress sites often contain more content types than the main navigation shows. Custom post types may represent services, locations, portfolio entries, events or downloads. The SEO plugin’s sitemap settings should be reviewed alongside the site’s information architecture to decide whether each type deserves search visibility.

Include a content type when its URLs are unique, useful, internally linked and maintained as part of the website’s search strategy. Exclude it when the records are administrative, duplicated elsewhere, incomplete or not intended for public search. Taxonomy archives require the same assessment. A category page with a clear purpose and useful supporting content may belong in the sitemap, while a tag archive containing one or two unhelpful entries may not.

When a content type is excluded, check whether its individual records remain indexable and whether that is intentional. Excluding an archive does not necessarily exclude the posts or pages assigned to it. Conversely, removing an individual record from the sitemap does not automatically remove its links from navigation, related-content modules or the XML sitemap for another content type.

Relationship with robots.txt and crawling

An XML sitemap and robots.txt perform different functions. The sitemap identifies URLs that are worth discovering; robots.txt controls which areas crawlers are allowed to request. Blocking a URL in robots.txt can prevent a crawler from seeing the page’s noindex instruction, so robots.txt should not normally be used as a substitute for noindex when the objective is to keep a known page out of search results.

Important, indexable pages should be accessible to crawlers, linked from relevant parts of the site and included in the sitemap. A sitemap cannot compensate for pages that are blocked, return errors, require inaccessible interactions or have no meaningful internal links. It is one part of technical SEO rather than a replacement for sound site architecture.

Submitting and checking the sitemap

After configuring the plugin, locate the sitemap index from the plugin settings or WordPress installation and check it directly in a browser. Confirm that:

  • The sitemap index loads without an error.
  • Each listed child sitemap contains the expected content type.
  • Important canonical URLs are present.
  • Noindex, redirected, duplicate or unsuitable URLs are absent.
  • URLs use the correct HTTPS version and preferred domain format.
  • The sitemap is not blocked by robots.txt, authentication or server security rules.

Submit the sitemap index through the relevant search engine webmaster service rather than submitting every child sitemap separately. Submission helps the search engine locate the sitemap, but it does not override exclusion settings or guarantee indexing. Continue to monitor reported sitemap issues, coverage information and crawl errors, particularly after a redesign, migration, change of domain or change to custom post types.

Practical configuration approach

  1. List the site’s genuine indexable content types and archive pages.
  2. Enable only those types that contain useful, distinctive content.
  3. Apply noindex or exclusion settings to utility, duplicate and low-value URLs.
  4. Review individual exceptions where a content type contains mixed-quality records.
  5. Check canonical tags, redirects, internal links and robots.txt alongside the sitemap.
  6. Test the sitemap after publishing, updating, deleting or redirecting representative URLs.

The most effective XML sitemap is not the one with the greatest number of URLs. It is an accurate, current list of the pages that matter to users and that the site is prepared to support with accessible content, appropriate internal linking and consistent technical signals.

WordPress SEO plugins control XML sitemaps by selecting and listing the URLs that are public, indexable and useful to searchers. They update these lists as content is published, edited, redirected or removed, so the sitemap remains aligned with the site’s current structure.

The plugin’s exclusion settings are particularly important. Pages set to noindex, duplicate archives, internal search results, attachment pages and other low-value URLs should normally be left out. A sitemap is not a replacement for the robots.txt file or a noindex directive: it helps search engines discover preferred URLs, while those other controls manage crawling and indexing behaviour.

  • Include important canonical URLs that return a successful response.
  • Exclude redirected, blocked, private or unsuitable pages.
  • Review custom post types and taxonomy archives individually.
  • Check the sitemap after major content, template or domain changes.

Review your WordPress XML sitemap settings

Review your WordPress XML sitemap settings to confirm that important, canonical URLs are included and unsuitable, redirected or noindex content is excluded.