Nexcess Logo

How to create a sitemap in WordPress

Knowledge Base Home

Notice anything different?

We've enhanced the appearance of our portal and we're working on updating screenshots. Things might look different, but the functionality remains the same.
July 21, 2021

In the WordPress 5.5 release, a new sitemap feature was added to the core. This means that you do not need to use an additional plugin in order to generate a sitemap for your site. Sitemaps are important since they allow search engines to use the file to crawl your site. They contain the information that is needed by Google and Bing search engines.

The sitemap XML feature in WordPress will output to the following URL;

There are a number of plugins that will allow you to control what it outputs in the sitemaps feature in WordPress, such as WP Sitemaps Config. You can access the plugin’s settings from:

Settings > XML Sitemaps

If you need to remove users being output in the sitemap results on your site, you can use this code snippet:

add_filter( 'wp_sitemaps_add_provider', function ($provider, $name) {

  return ( $name == 'users' ) ? false : $provider;

}, 10, 2);

If you need to remove the sitemap’s output from WordPress completely, you can use this code snippet to do so:

add_filter( 'wp_sitemaps_enabled', '__return_false' );

One of the most commonly used SEO plugins for WordPress is Yoast SEO.

The Yoast SEO plugin includes its own very powerful sitemaps XML feature which can easily be enabled in the plugin settings. When the sitemap feature is enabled in the Yoast SEO plugin, it will disable the sitemaps feature from WordPress, which helps only have one sitemap output on your site. You can enable the sitemaps XML feature in Yoast SEO in wp-admin from:

SEO > General

Another very popular SEO plugin is Rank Math SEO which is also commonly used on sites.

When the plugin has been installed and active on your site, you can access the sitemap feature from:

Rank Math > Sitemap Settings

You can follow this help article by using the sitemaps feature in the Rank Math SEO plugin.

Using either the sitemaps XML feature in WordPress core or the sitemap features that are provided in the Yoast SEO or Rank Math SEO will make sure that your site has a correctly outputting sitemap.

For 24-hour assistance any day of the year, contact our support team by email or through your Client Portal.

Luke Cavanagh
Luke Cavanagh

Luke Cavanagh, Strategic Support & Accelerant at Liquid Web, brings a decade of experience working with WordPress and WooCommerce to our product team. His GitHub page offers a glimpse into his multiple areas of subject matter expertise.

"Ninja stuff with WordPress and WooCommerce," is an apropos way to describe Luke's savviness with these platforms — and his way of influencing our organization for improving to them.

Coming out of the University of Brighton with a Business and Technology Education Council (BTEC) Higher National Diploma (HND) in 2D & 3D Design, Luke's credentials prepared him well for his current role that blends both web development and design. His HND credential leveraged his foundational learning at West Kent College, where is received a National Diploma (ND) in Graphic Design.

In his personal life, Luke is a devoted husband and teen wrangler. He considers himself a Synthwave enthusiast, Jerry Goldsmith fan, and Doctor Who aficionado. He is happy to introduce his friends and teammates to essential vocabulary for life found only in British English, such as "gubbins" and similar terms.

We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.