View Categories

How to create a sitemap in WordPress?

Creating a sitemap in WordPress is straightforward and can significantly improve your website’s SEO by making it easier for search engines to discover your content.

Here’s a simple guide:

Use a Plugin

  • Install a SEO Plugin: Plugins like Yoast SEO, All in One SEO, or Rank Math have built-in sitemap functionality. Go to your WordPress dashboard, click on “Plugins” > “Add New,” search for one of these plugins, and click “Install Now” then “Activate.”

 

WordPress dashboard showing SEO plugin options.

 

Enable Sitemaps

  • For Yoast SEO: Navigate to “SEO” > “General” > “Features” tab. Scroll down to “XML sitemaps” and toggle it to “On.”

 

Enabling XML Sitemap in Yoast SEO plugin.

 

  • For All in One SEO: Go to “All in One SEO” > “Sitemaps” and ensure the toggle for “Enable Sitemap” is turned on.

 

SEO plugin interface enabling HTML sitemap feature.

 

  • For Rank Math: Access “Rank Math” > “Sitemap Settings,” and make sure the sitemaps feature is enabled.

 

SEO plugin interface with sitemap settings highlighted.

 

Customize Your Sitemap (optional)

  • These plugins allow you to customize which content (posts, pages, categories) gets included in your sitemap. Adjust settings based on your preference.

 

WordPress SEO plugin comparison graphic.

 

View Your Sitemap

  • Typically, you can view your sitemap by appending /sitemap_index.xml to your website URL (e.g., www.yoursite.com/sitemap_index.xml). This URL is what you’ll submit to search engines like Google for indexing.

 

Web address for XML sitemap example

 

Manual Creation (Advanced)

  • If you prefer not to use a plugin, you can manually create an XML sitemap using an XML sitemap generator online, then upload the file to your WordPress site via FTP to the root directory. However, this method requires regular manual updates as your site content changes.

 

Screenshot of WordPress theme 'Hello Elementor' code editor.

 

Remember: After creating your sitemap, consider submitting it to Google Search Console and other search engines to enhance your site’s visibility.