Your Cart
Rank Math exclude content from sitemap

Rank Math Sitemap Exclusions: How to Exclude Content from Your Sitemap

Managing a sitemap is not simply a matter of putting every available WordPress URL into one list. A site may contain individual posts, pages, custom post types, taxonomy archives, author archives, attachment pages and special sitemap data. Some of these URLs may have a clear purpose, while others may be empty, duplicated, redirected or unsuitable for the sitemap structure you want to present to search engines. Rank Math provides controls for handling these cases, but the configuration should follow an editorial and technical decision rather than a default rule.

This guide explains how to exclude selected content from a Rank Math sitemap, including posts, pages, custom post types, taxonomy terms, authors, users and attachments. It also shows what to check when a URL is missing. The key distinction throughout is that sitemap exclusion is not the same as noindex, a canonical change, a redirect or removal from search results. A sitemap can help search engines discover URLs, but inclusion does not guarantee crawling or indexing.

What a Rank Math Sitemap Exclusion Actually Does

A Rank Math sitemap exclusion changes whether a selected URL or sitemap group is included in the generated sitemap. In practical terms, the excluded item is removed from the list of URLs that the sitemap presents to search engines. This can help keep the sitemap focused on content that fits the site’s intended structure.

However, exclusion does not automatically apply noindex, block crawling, set a custom canonical, create a redirect or remove the URL from search results. Those are separate decisions and settings. A URL that is absent from a sitemap may still be accessible and may still be discovered through internal links or other sources.

Sitemap listing versus indexability

A sitemap is primarily a discovery aid. Its presence can help search engines find URLs, but it is not a guarantee that every listed URL will be crawled or indexed. Conversely, removing a URL from the sitemap does not by itself determine whether that URL can be indexed. Treat the sitemap as one part of a wider indexability plan.

Before excluding an important canonical page, check its purpose, canonical target, expected indexability and internal links. Low traffic or a small number of internal links is not, on its own, enough reason to remove a valuable page from the sitemap.

How to Exclude Individual Posts, Pages, and Custom Post Types

For selected WordPress content, Rank Math documents an ID-based exclusion method. The relevant controls are available through Rank Math SEO → Sitemap Settings when the Sitemap module is active. The exact options visible in the dashboard can depend on the active configuration, so use the settings shown in the particular site rather than assuming every installation has identical controls.

Using Exclude Posts

To exclude individual content items, locate the Exclude Posts field in the sitemap settings. Enter the numeric post IDs for the posts, pages or custom post types that should not appear in the generated sitemap. If you need to exclude more than one item, enter the IDs as a comma-separated list.

The procedure is therefore:

  1. Open Rank Math SEO → Sitemap Settings.
  2. Confirm that the Sitemap module and the relevant sitemap section are active.
  3. Identify the numeric post ID of the selected post, page or custom post type item.
  4. Enter one or more IDs in Exclude Posts, separating multiple IDs with commas.
  5. Save the settings and check the generated sitemap.

This control is for selecting particular items. It does not automatically exclude other content of the same type, and it does not change the item’s separate indexability settings.

Selected items versus whole sitemap groups

There is an important difference between excluding selected items and disabling an entire group. Individual posts, pages and custom post type entries can be identified through their post IDs. By contrast, a whole group is controlled through its corresponding Include in Sitemap setting, where that control is available.

Use the narrower option when only specific URLs should be omitted. Use a group-level setting only after checking that the entire content type or sitemap section belongs outside the intended sitemap. Do not remove a complete group merely because some entries are weak, empty or unnecessary; review whether important canonical content would be affected.

How to Exclude Categories, Tags, and Custom Taxonomy Terms

Taxonomy archives are handled separately from individual posts. Rank Math provides an Exclude Terms field for taxonomy terms, including categories, tags and other taxonomies documented by the plugin. This lets you identify selected taxonomy archive terms without automatically removing the posts assigned to them.

The Exclude Terms field

Enter the relevant numeric term IDs in Exclude Terms. As with post exclusions, multiple term IDs can be entered as a comma-separated list. After saving, inspect the generated taxonomy sitemap to confirm that the intended archive is no longer included.

Remember that excluding a category or tag archive is not the same as excluding the posts associated with that term. If those posts should also be absent, review them separately through the post-related sitemap controls. Likewise, do not assume that every category or tag should be excluded. First consider whether the archive has a distinct search purpose and useful content.

Empty taxonomy archives

An empty taxonomy archive is a separate diagnostic case. If a missing URL is a taxonomy archive with no assigned content, its absence may be related to how empty taxonomy archives are handled rather than to a failure in Rank Math. Check the archive’s content status, the relevant taxonomy sitemap setting and any term exclusions before concluding that the sitemap is malfunctioning.

Use the same caution for custom taxonomies. Their value depends on the site structure, the content assigned to them and the purpose of the archive. A blanket exclusion of all terms can remove useful organizational pages from the sitemap.

Author Archives, Users, Attachments, and Local Sitemap Data

Rank Math also documents controls for content types and sitemap elements that do not fit the basic post-and-taxonomy workflow. These settings are useful when the site has author archives, attachment pages or Local SEO data, but their availability can depend on the configuration and active modules.

Author archives and selected users

Author sitemap controls can disable author archives globally, exclude selected user roles or exclude specific users by user ID. The author settings are available when author archives are enabled and set to index. Check that prerequisite before looking for a missing author URL.

The available levels of control are:

  • Disable author archives from the sitemap globally.
  • Exclude selected user roles.
  • Exclude individual users by numeric user ID.

Do not treat every author archive as low-value by default. Some sites may use author archives as meaningful navigational or editorial pages, while others may not need them in the sitemap. The decision should reflect the site’s structure and indexability goals.

Attachments and KML data

Attachment sitemap behavior depends on Rank Math’s attachment settings. The plugin documents a global attachment sitemap option and an option to exclude an individual attachment from the Media Library. Rank Math also notes that attachment pages are commonly treated as thin content, while attachment redirect settings can affect whether attachment sitemap controls are available.

Before changing these settings, check the visible attachment and redirect configuration in the site’s dashboard. Do not assume that every attachment should be excluded or that the same controls will appear in every configuration.

There is also a special Local Sitemap case. When the Local SEO module is active, Rank Math documents an option to disable inclusion of the location KML file in the Local Sitemap. If the module is not active, this setting may not appear.

Which WordPress Content Should You Leave Out?

Rank Math provides the mechanism, but it does not decide which URLs are low-value for every website. That classification is site-specific. A post, archive, author page, attachment or taxonomy term should be reviewed in the context of the site’s purpose, content quality, internal linking and indexability goals.

Empty, duplicating, redirected or otherwise unhelpful archives may be candidates for review. They are not automatic candidates for exclusion. A page with little traffic can still have a clear canonical purpose, support an important content structure or be useful to visitors. Similarly, a category or author archive may be valuable even if it currently has limited visibility.

A site-specific decision checklist

Before entering an ID into an exclusion field, ask:

  • Does the URL have a distinct purpose for users or search intent?
  • Does it contain useful, non-duplicating content?
  • Is the canonical URL correct and does the page have the expected indexability setting?
  • Does the URL support the site’s internal linking or content structure?
  • Should only this item be excluded, or is the whole sitemap group inappropriate?

These questions separate an editorial decision from a technical option. The fact that Rank Math can exclude an item does not mean that exclusion is appropriate.

Troubleshoot a URL Missing from the Rank Math Sitemap

When a URL does not appear in a Rank Math sitemap, start with configuration checks rather than assuming a plugin error. A missing URL may be intentionally omitted because of an indexability setting, a canonical instruction, an exclusion field, archive behavior or cached sitemap output.

A practical missing-URL checklist

Review the following points in order:

  1. Check whether the URL is set to noindex. An indexability setting can affect whether it is included.
  2. Check whether the URL has a custom canonical pointing elsewhere.
  3. Review Exclude Posts for the relevant post, page or custom post type ID.
  4. Review Exclude Terms for the relevant taxonomy term ID.
  5. For an author URL, check whether author archives are enabled and set to index, then review global, role-based and user-ID exclusions.
  6. For an attachment, check the global attachment sitemap setting, individual Media Library exclusion and attachment redirect configuration.
  7. Check whether the URL is an empty taxonomy archive.
  8. Confirm that the relevant sitemap section and the Sitemap module are enabled.
  9. Clear or bypass relevant caching, then open the generated sitemap again.

After a correction, validate the generated sitemap itself. This confirms whether the URL is present in the current sitemap output, but it does not settle the separate question of whether the URL should be indexed.

What sitemap validation can and cannot confirm

Sitemap validation can show whether Rank Math currently includes an address in the generated list. It can help distinguish a configuration or caching issue from an intentional exclusion. It cannot guarantee that a search engine will crawl the URL immediately, crawl it at all or index it.

For that reason, do not use sitemap inclusion as a promise of visibility, and do not use exclusion as a substitute for a considered indexability decision. Search engines treat sitemap entries as discovery and crawling signals, not absolute requirements. A sitemap should contain URLs that the site owner wants search engines to consider, while other controls determine the broader treatment of those URLs.

In summary, start by deciding whether a URL belongs in the sitemap, then choose the narrowest suitable Rank Math control. Use Exclude Posts for selected posts, pages and custom post types, Exclude Terms for taxonomy terms, and the documented author, attachment and Local Sitemap settings for their respective cases. When an address is missing, check noindex, canonical, exclusions, archive status, enabled sitemap sections and caching before diagnosing a fault. Keep sitemap selection separate from indexability, crawling and search results. Explore our WordPress plugins, WooCommerce extensions, themes and membership plans to find the right tools for your website.

Free Worldwide shipping

You can download the products right away at wpbetterplugins.com

Immediate delivery

After the payment is credited, the product is ready for download

International Warranty

Offered in the country of usage

100% Secure Checkout

Stripe / Apple Pay / Google Pay / MasterCard / Visa

Zadzwoń