Creating an XML Sitemap in WordPress with All in One SEO Pack

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

  1. Log into your WordPress Dashboard.
  2. Click the All in One SEO option in the navigation menu.

  3. Click the Feature Manager option in the All in One SEO section.

  4. 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.

  5. Click the XML Sitemap link in the All in One SEO section of the navigation menu.

  6. 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.

    Thoughts on “Creating an XML Sitemap in WordPress with All in One SEO Pack

    • My sitemap created using ALL IN ONE SEO plugin is showing the following error “error on line 1 at column 10: XML declaration allowed only at the start of the documentBelow is a rendering of the page up to the first error”. My Robot.txt file in ALL IN ONE SEO Plugin is showing my sitemap as “http://bestpropertydeals.co.in/sitemap.xml.gz” and when I am trying to open this URL, a zip file gets downloaded

      • Sorry for the problem with your plugin. You will need to work with the plugin developer to resolve it. Fortunately, when I search for this particular issue, it has been addressed before. I found it in the WordPress support section here. The plugin developer explains why the error occurs and how to fix it.

    • I’ve utilized this feature. Sitemap validators say they cannot access the sitemap file. Google Search Console says the same. Please advise.

    • I have site with subdommains. How l can make sitemap.xml for subdomains only? Now your modul display sub and main domain.

      • According to the Moz blog post, you should keep a separate site map for each subdomain. You may need to manually produce this if it is not an available option with this plugin.

    • Thanks for this. Do these steps also submit the sitemap to all the search enginges? Or are there extra steps for that?

      • This plugin does not send the Sitemap to Search Engines, it simply creates the sitemap that search engines can read. I recommend following the documentation per search engine to upload or provide them with your sitemap information.

    • Very useful informaton, thanks.

      However, how long does it take for the sitemap to update? I have added pages slug names to the Excluded section but they still appear when i click on the ‘view your sitemap’

      Thanks

    Leave a Reply