In this tutorial, we will show you how to create an XML Sitemap in WordPress using the All in One SEO Pack plugin. An XML sitemap is a document that helps Google and other major search engines better understand your website while crawling it. Sitemaps are a protocol that allows the webmaster for a website to inform Google and other major search engines about URLS on a website that are available for crawling. For more information, see our full article What is a XML sitemap
Create XML Sitemap
- Log into your WordPress Dashboard.
Click the All in One SEO option in the navigation menu.
Click the Feature Manager option in the All in One SEO section.
You will see the XML Sitemaps option, click the Activate button.
You will then see a message stating “All in One SEO Options Updated.” Your sitemap will be created at this time.
Click the XML Sitemap link in the All in One SEO section of the navigation menu.
You can then choose your sitemap settings as needed. Below is a description of the available options provided by All in One SEO plugin:
Option Description Sitemap Status Access your sitemap or the status of your sitemap. Filename Prefix Specifies the name of your sitemap file. This will default to ‘sitemap’. Schedule Updates Notify search engines based on the selected schedule, and also update static sitemap daily if in use. (this uses WP-Cron, so make sure this is working properly on your server as well) Enable Sitemap Indexes Organize sitemap entries into distinct files in your sitemap. Enable this only if your sitemap contains over 50,000 URLs or the file is over 5MB in size. Post Types Select which Post Types appear in your sitemap. Taxonomies Select which taxonomy archives appear in your sitemap. Include Date Archive Pages Include Date Archives in your sitemap. Include Author Pages Include Author Archives in your sitemap. Exclude Images Exclude Images in your sitemap. Create Compressed Sitemap Create a compressed sitemap file in .xml.gz format. Link From Virtual Robots.txt Places a link to your Sitemap.xml into your virtual Robots.txt file. Dynamically Generate Sitemap Dynamically creates the XML sitemap instead of using a static file. Additional Pages Enter information below for any additional links for your sitemap not already managed through WordPress. Excluded Items Excluded Categories Entries from these categories will be excluded from the sitemap. Excluded Pages Use page slugs or page IDs, seperated by commas, to exclude pages from the sitemap. Priorites Homepage Manually set the priority of your homepage. Posts Manually set the priority of your posts. Taxonomies Manually set the priority of your taxonomies. Frequencies Homepage Manually set the frequency of your homepage. Posts Manually set the frequency of your posts. Taxonomies Manually set the frequency of your taxonomies.
Click the Update Sitemap button to save your changes.
You are finished when you see a message stating “All in One SEO Options Updated.“
Congratulations, now you know how to create an XML Sitemap in WordPress using the All in One SEO Pack plugin! In the next guide we will show you how to Set your Social Meta in WordPress with All in One SEO Pack.