{"id":36045,"date":"2022-04-16T12:19:00","date_gmt":"2022-04-16T17:19:00","guid":{"rendered":"https:\/\/wpengine.com\/?post_type=resource&#038;p=36045"},"modified":"2025-03-12T14:19:44","modified_gmt":"2025-03-12T19:19:44","slug":"xml-sitemap-wordpress","status":"publish","type":"resource","link":"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/","title":{"rendered":"XML Sitemaps for WordPress"},"content":{"rendered":"\n<p>You want your website&#8217;s content to be easy to find through search engines. After all, it&#8217;s a great way to bring organic traffic to your site. <\/p>\n\n\n\n<p>However, you&#8217;re missing out on an effective Search Engine Optimization (SEO) tool if you aren&#8217;t using an XML sitemap. <\/p>\n\n\n\n<p>XML sitemaps are used by search engine bots to more effectively &#8220;crawl&#8221; your site&#8217;s content. Creating one for your website can make your content more visible on Search Engine Results Pages (SERPs). <\/p>\n\n\n\n<p>In this post, we&#8217;ll discuss what XML sitemaps are and why you may need one for your WordPress website. We&#8217;ll then show you a few ways to generate your own sitemaps and alert Google to their existence. Let&#8217;s get started!<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">What is an XML Sitemap?<\/h2>\n\n\n\n<p>An XML sitemap is an index of your website&#8217;s posts and pages. It&#8217;s used by search engine crawlers\u2014robots that index and add your website to SERPs.<\/p>\n\n\n\n<p>When robots crawl your site without a sitemap, they must use your site&#8217;s internal links to navigate it. An HTML sitemap simplifies the process by providing the crawlers with a detailed map of your entire site\u2014including your pages, posts, and hierarchy.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Do You Need an XML Sitemap for a WordPress Website?<\/h2>\n\n\n\n<p>If your website\u2019s content is already visible on SERPs, do you really need an XML sitemap? If you want your WordPress website to be thoroughly and frequently indexed by search engine crawlers, the answer is yes!<\/p>\n\n\n\n<p>The more successfully a search engine bot can crawl your website, the better. This enables updated content to rank on SERPs, which is beneficial for driving <a href=\"https:\/\/wpengine.com\/resources\/wordpress-google-analytics-tag-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">targeted traffic<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Can You Find a Sitemap in WordPress?<\/h2>\n\n\n\n<p>Finding the XML sitemap for a WordPress site is simple, and all it takes is the addition of a specific slug at the end of your (or another website\u2019s) URL. For example, most sitemaps use <em>sitemap.xml\/<\/em>. As such, you can enter <em>www.example.com\/sitemap.xml<\/em> into the address bar and be redirected to a sitemap:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"477\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2018\/03\/xml2.jpg\" alt=\"how to find a sitemap in wordpress. How To Add Sitemap In WordPress\" class=\"wp-image-36047\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml2.jpg 630w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml2-300x227.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>If this doesn\u2019t work, other popular slugs include <em>page-sitemap.xml<\/em> and <em>sitemap_index.xml<\/em>. Of course, you can also do the same for your own website to determine if you currently have an active sitemap.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Create an XML Sitemap for WordPress<\/h2>\n\n\n\n<p>There are two different kinds of XML sitemaps you can create on WordPress\u2014static and dynamic. The generation techniques differ for each, so let\u2019s take a closer look.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Generate a Dynamic Sitemap<\/h3>\n\n\n\n<p>A dynamic sitemap is used by most websites. It\u2019s recommended for anyone who doesn\u2019t have the time or the knowledge to maintain one manually, and it essentially updates based on your site\u2019s structure automatically.<\/p>\n\n\n\n<p>In fact, it is possible to <a href=\"https:\/\/www.sitemaps.org\/protocol.html\" target=\"_blank\" rel=\"noreferrer noopener\">generate a dynamic sitemap manually<\/a>, but this takes quite a bit of XML knowledge. If you aren\u2019t familiar with XML, your next best option is to use a WordPress plugin. There are quite a few options in the <a href=\"https:\/\/wordpress.org\/plugins\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress Plugin Directory<\/a>, but we recommend <a href=\"https:\/\/wordpress.org\/plugins\/all-in-one-seo-pack\/\" target=\"_blank\" rel=\"noreferrer noopener\">All in One SEO<\/a>, <a href=\"https:\/\/wordpress.org\/plugins\/google-sitemap-generator\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google XML Sitemaps<\/a>, or <a href=\"https:\/\/wordpress.org\/plugins\/wordpress-seo\/\" target=\"_blank\" rel=\"noreferrer noopener\">Yoast SEO<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Create a Sitemap for WordPress Using Yoast SEO<\/h3>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/wordpress-seo\/\" target=\"_blank\" rel=\"noreferrer noopener\">Yoast SEO<\/a> is one of the most popular SEO plugins and includes the ability to <a href=\"https:\/\/kb.yoast.com\/kb\/enable-xml-sitemaps-in-the-wordpress-seo-plugin\/\" target=\"_blank\" rel=\"noreferrer noopener\">generate an XML sitemap<\/a> with just a few clicks:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"204\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2018\/03\/xml3.jpg\" alt=\"Yoast SEO logo next to cartoon illustration of a team collaborating at a laptop. How To Add Sitemap In WordPress\" class=\"wp-image-36048\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml3.jpg 630w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml3-300x97.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>To generate your own sitemap, firstly <a href=\"https:\/\/codex.wordpress.org\/Managing_Plugins#Automatic_Plugin_Installation\" target=\"_blank\" rel=\"noreferrer noopener\">download and install<\/a> the plugin. Next, navigate to the WordPress dashboard, and click <em>SEO<\/em> &gt; <em>General<\/em> from the left-hand menu. From here, select the <em>Features tab<\/em> and scroll to <em>XML Sitemaps<\/em>. Toggle the bar to <em>On<\/em> and click <em>Save Changes<\/em>:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"425\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2018\/03\/xml4.jpg\" alt=\"Using Yoast SEO to create xml sitemap by turning on the XML Sitemaps option within the plugin features. How To Add Sitemap In WordPress\" class=\"wp-image-36049\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml4.jpg 630w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml4-300x202.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>To see your new sitemap, click the question mark next to <em>XML Sitemap<\/em>, then click the dedicated link:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"180\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2018\/03\/xml5.jpg\" alt=\"XML Sitemaps option within plugin features set to &quot;on.&quot; A yellow box highlights clickable text above the on\/off toggle which reads &quot;See the XML sitemap&quot; How To Add Sitemap In WordPress\" class=\"wp-image-36050\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml5.jpg 630w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml5-300x86.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>You can also manually type the URL into your address bar. With Yoast SEO, the sitemap URL will follow the <em>http:\/\/www.yourwebsite.com\/sitemap_index.xml<\/em> structure.<\/p>\n\n\n\n<p>However, you\u2019re not done just yet. You still need to submit the sitemap to Google, which we\u2019ll show you how to do later.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Create and Add a Static Sitemap to WordPress<\/h3>\n\n\n\n<p>As we mentioned, a static sitemap does not automatically index your posts and pages, and must be updated manually.<\/p>\n\n\n\n<p>This also means a static sitemap URL is easier to generate manually than a dynamic one. To begin, collect a list of all active URLs on your website that you want to include in your sitemap. You can use an online generator, such as <a href=\"https:\/\/www.xml-sitemaps.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">XML-Sitemaps<\/a> if your website contains less than 500 active URLs:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"127\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2018\/03\/xml6.jpg\" alt=\"Screenshot from online sitemap generator XML-Sitemaps.com. How To Add Sitemap In WordPress\" class=\"wp-image-36051\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml6.jpg 630w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml6-300x60.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>Once generated, you can download your sitemap in <em>.xml<\/em> format. Now, it\u2019s time to it upload to your website\u2019s root directory. You\u2019ll need a free <a href=\"https:\/\/wpengine.com\/resources\/how-to-access-wordpress-files-using-sftp\/\" target=\"_blank\" rel=\"noreferrer noopener\">File Transfer Protocol (FTP)<\/a> manager, such as <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">FileZilla<\/a>, to do so. If you\u2019re not au fait with FTP, you may also want to <a href=\"https:\/\/codex.wordpress.org\/Using_FileZilla\" target=\"_blank\" rel=\"noreferrer noopener\">brush up on your skills<\/a> beforehand.<\/p>\n\n\n\n<p>Once <a href=\"https:\/\/wiki.filezilla-project.org\/Client_Installation\" target=\"_blank\" rel=\"noreferrer noopener\">installed on your computer<\/a>, you\u2019ll need a few key pieces of information for logging in: a <em>Host<\/em>, <em>Username<\/em>, <em>Password<\/em>, and <em>Port<\/em>.<\/p>\n\n\n\n<p>You can locate this information by logging into your hosting account, and navigating to <em>FTP Users<\/em> (or a similarly named area) from the dashboard. You can also ask your host directly, or find your initial signup email.<\/p>\n\n\n\n<p>Once you\u2019ve logged in, double-click on your site\u2019s <em>root<\/em> folder in the lower right-hand section of FileZilla. It may be called <em>www<\/em>, <em>public_html<\/em>, or named after your website. To upload the <em>sitemap.xml<\/em> file, drag-and-drop it from your local folder, which can be found on the bottom left of the screen:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"477\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2018\/03\/xml8.jpg\" alt=\"steps to create and add static sitemap to wordpress site using a static sitemap generator. How To Add Sitemap In WordPress\" class=\"wp-image-36053\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml8.jpg 630w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml8-300x227.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>With the sitemap now uploaded to your website, it&#8217;s time to notify Google and other major search engines of the change.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Create a Sitemap Using All in One SEO<\/h3>\n\n\n\n<p><a href=\"https:\/\/aioseo.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">All in One SEO<\/a> is not just a sitemap plugin\u2014it also provides a range of SEO improvement tools, including video and news sitemaps. However, its easy-to-use XML sitemap functionality is one of its best assets. Here\u2019s how it works.<\/p>\n\n\n\n<p>After downloading and installing the <a href=\"https:\/\/wordpress.org\/plugins\/all-in-one-seo-pack\/\" target=\"_blank\" rel=\"noreferrer noopener\">AIOSEO plugin<\/a>, your WordPress site will immediately include a sitemap. It\u2019s that easy!<\/p>\n\n\n\n<p>To customize your sitemap, visit the WordPress dashboard and head to <em>All in One SEO &gt; Sitemaps<\/em>. Under <em>General Settings<\/em>, ensure the <em>Enable Sitemap <\/em>setting is switched on.<\/p>\n\n\n\n<p>As you scroll down, you\u2019ll see <em>Enable Sitemap Indexes<\/em>. Unless your site has over 1000 URLs, set this to <em>Disabled<\/em>. If you\u2019re unsure, leave it as <em>Enabled<\/em>. Next, you can edit the <em>Links per Sitemap<\/em> setting; however, the default 1000 should be fine for most users.<\/p>\n\n\n\n<p>You can also decide what post types and taxonomies appear in your WordPress sitemap. Unchecking the <em>Post Types<\/em> and <em>Taxonomies <\/em>boxes reveals a list of posts and categories that you can edit.<\/p>\n\n\n\n<p>Lastly, you can choose whether or not to include <em>Date Archives <\/em>and <em>Author Archives<\/em> in your sitemap. These don\u2019t add anything from an SEO perspective, so we suggest leaving these as <em>Disabled<\/em>. You now have a powerful sitemap driving search engine traffic to your WordPress site.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Create a Sitemap Without Using a Plugin<\/h3>\n\n\n\n<p>A WordPress sitemap plugin simplifies sitemap creation, but you don\u2019t have to use one. Whether you want to save money or reduce plugin usage, here\u2019s how to create a sitemap manually.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Code Your Sitemap (or Use Existing Code)<\/h4>\n\n\n\n<p>First, you\u2019ll use PHP code to create an XML sitemap. For those unfamiliar with PHP, All in One SEO has conveniently provided <a href=\"https:\/\/aioseo.com\/create-a-wordpress-xml-sitemap-without-a-plugin\/#:~:text=Custom%20Code%20for%20WordPress%20XML%20Sitemap%C2%A0\" target=\"_blank\" rel=\"noreferrer noopener\">an example<\/a>. Copy the entire string to your clipboard.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Add the Sitemap Code<\/h4>\n\n\n\n<p>In your dashboard, navigate to <em>Appearance &gt; Theme Editor<\/em>. Open the functions.php file on the right-hand side, then paste your code at the bottom of the file. Click <em>Update File<\/em>, and your site now has a basic XML sitemap.<\/p>\n\n\n\n<p>Always edit your code in a Child Theme to avoid losing changes.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Submit to Google<\/h4>\n\n\n\n<p>Many plugins submit your sitemap to Google automatically. But manually creating your sitemap means that Google will be unaware of the file. We\u2019ll explain how to submit your sitemap to Google in the following section.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Submit WordPress Sitemap to Google<\/h2>\n\n\n\n<p>As mentioned, a sitemap makes it easier for search engines to crawl your website. However, you make their jobs much easier if you alert them to the sitemap\u2019s presence beforehand.<\/p>\n\n\n\n<p>To do so, you can use <a href=\"https:\/\/www.google.com\/webmasters\/tools\/home?hl=en\" target=\"_blank\" rel=\"noreferrer noopener\">Google Search Console<\/a>. Once logged in, you\u2019ll first need to <a href=\"https:\/\/support.google.com\/webmasters\/answer\/35179?hl=en\" target=\"_blank\" rel=\"noreferrer noopener\">verify ownership of the website<\/a>, then navigate to <em>Crawl<\/em> &gt; <em>Sitemaps<\/em> found on the left-hand menu. On this page, click the red button at the top right that says <em>Add\/Test Sitemap<\/em>:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"247\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2018\/03\/xml9.jpg\" alt=\"Submitting a sitemap to Google Search Console. How To Add Sitemap In WordPress\" class=\"wp-image-36054\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml9.jpg 630w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2018\/03\/xml9-300x118.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n\n\n\n<p>Enter the URL of your sitemap, and click <em>Submit Sitemap<\/em>. Now, Google can react more quickly to your content updates. This means your content will more quickly appear in SERPs, which is beneficial for your website\u2019s traffic and overall success.<\/p>\n\n\n\n<p>Are you interested in other WordPress-specific topics and information? Check out the <a href=\"https:\/\/wpengine.com\/blog\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP Engine blog<\/a> and visit WP Engine to find out more about our industry-leading <a href=\"https:\/\/wpengine.com\/wordpress-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">hosting platform<\/a> and <a href=\"https:\/\/wpengine.com\/plans\/\" target=\"_blank\" rel=\"noreferrer noopener\">flexible plans<\/a> to learn more about our offerings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You want your website&#8217;s content to be easy to find through search engines. After all, it&#8217;s a great way to bring organic traffic to your site. However, you&#8217;re missing out on an effective Search Engine Optimization (SEO) tool if you aren&#8217;t using an XML sitemap. XML sitemaps are used by search engine bots to more<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":1,"featured_media":114315,"template":"","resource-topic":[904,910],"resource-role":[895,906,897,903],"resource-type":[916],"class_list":["post-36045","resource","type-resource","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create and Add an XML Sitemap to WordPress<\/title>\n<meta name=\"description\" content=\"Master the simple steps to create, add, and submit an SEO-boosting XML sitemap to your WordPress site using this guide.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create and Add an XML Sitemap to WordPress\" \/>\n<meta property=\"og:description\" content=\"Master the simple steps to create, add, and submit an SEO-boosting XML sitemap to your WordPress site using this guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-12T19:19:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2020\/04\/shutterstock_1756593041.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Create and Add an XML Sitemap to WordPress\" \/>\n<meta name=\"twitter:description\" content=\"Master the simple steps to create, add, and submit an SEO-boosting XML sitemap to your WordPress site using this guide.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2020\/04\/shutterstock_1756593041.jpg\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/\",\"url\":\"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/\",\"name\":\"How to Create and Add an XML Sitemap to WordPress\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\"},\"datePublished\":\"2022-04-16T17:19:00+00:00\",\"dateModified\":\"2025-03-12T19:19:44+00:00\",\"description\":\"Master the simple steps to create, add, and submit an SEO-boosting XML sitemap to your WordPress site using this guide.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\/\/wpengine.com\/case-studies\/resources\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"XML Sitemaps for WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\",\"url\":\"https:\/\/wpengine.com\/case-studies\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/f5301455463371a10d1fc290e9ad0085\",\"name\":\"WP Engine\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g\",\"caption\":\"WP Engine\"},\"sameAs\":[\"https:\/\/wpengine.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create and Add an XML Sitemap to WordPress","description":"Master the simple steps to create, add, and submit an SEO-boosting XML sitemap to your WordPress site using this guide.","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"How to Create and Add an XML Sitemap to WordPress","og_description":"Master the simple steps to create, add, and submit an SEO-boosting XML sitemap to your WordPress site using this guide.","og_url":"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_modified_time":"2025-03-12T19:19:44+00:00","og_image":[{"width":1100,"height":500,"url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2020\/04\/shutterstock_1756593041.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_title":"How to Create and Add an XML Sitemap to WordPress","twitter_description":"Master the simple steps to create, add, and submit an SEO-boosting XML sitemap to your WordPress site using this guide.","twitter_image":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2020\/04\/shutterstock_1756593041.jpg","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/","url":"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/","name":"How to Create and Add an XML Sitemap to WordPress","isPartOf":{"@id":"https:\/\/wpengine.com\/case-studies\/#website"},"datePublished":"2022-04-16T17:19:00+00:00","dateModified":"2025-03-12T19:19:44+00:00","description":"Master the simple steps to create, add, and submit an SEO-boosting XML sitemap to your WordPress site using this guide.","breadcrumb":{"@id":"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/case-studies\/resources\/xml-sitemap-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/case-studies\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/wpengine.com\/case-studies\/resources\/"},{"@type":"ListItem","position":3,"name":"XML Sitemaps for WordPress"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/case-studies\/#website","url":"https:\/\/wpengine.com\/case-studies\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/f5301455463371a10d1fc290e9ad0085","name":"WP Engine","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g","caption":"WP Engine"},"sameAs":["https:\/\/wpengine.com"]}]}},"acf":[],"grid_image_url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2020\/04\/shutterstock_1756593041-1.jpg","media-type":{"term_id":916,"name":"Article","slug":"article"},"role":"<strong>Roles:<\/strong> Agency, Entrepreneur, Freelancer, Marketer","topic":"<strong>Topics:<\/strong> Marketing, SEO","_links":{"self":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource\/36045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource"}],"about":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/types\/resource"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/users\/1"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media\/114315"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media?parent=36045"}],"wp:term":[{"taxonomy":"resource-topic","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-topic?post=36045"},{"taxonomy":"resource-role","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-role?post=36045"},{"taxonomy":"resource-type","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-type?post=36045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}