{"id":5527,"date":"2018-08-24T11:03:41","date_gmt":"2018-08-24T11:03:41","guid":{"rendered":"https:\/\/www.truehost.co.ke\/support\/?post_type=ht_kb&#038;p=5527"},"modified":"2024-06-21T08:31:31","modified_gmt":"2024-06-21T08:31:31","password":"","slug":"create-sitemap-wordpress","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/","title":{"rendered":"How to create sitemap in WordPress"},"content":{"rendered":"<p>There are a number of ways that we can create xml sitemap in WordPress. We will use the yoast seo plugin to achieve this.<\/p>\n<p>We use this plugin because it allows us to\u00a0optimize our blog posts\u00a0along with offering other features such as sitemaps, social integration, and more. We have also noticed that it works more efficiently than other standalone sitemap generators for WordPress.<\/p>\n<p>To add a sitemap to your WordPress site, first thing you need to do is install and activate\u00a0WordPress SEO by Yoast\u00a0plugin. By default, WordPress SEO does not enable XML sitemap functionality, so you will have to turn it on. To do that go to\u00a0<strong>SEO \u00bb XML Sitemaps<\/strong>\u00a0and check the box to enable XML sitemap functionality.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5528\" src=\"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/08\/xml-300x185.jpg\" alt=\"\" width=\"300\" height=\"185\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/08\/xml-300x185.jpg 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/08\/xml-50x31.jpg 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/08\/xml-320x197.jpg 320w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2018\/08\/xml.jpg 520w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>When you check the box to enable XML sitemap functionality, WordPress SEO will show you a number of options that you can configure for your Sitemaps. If you are unsure about what to do with them, then ignore them and click on\u00a0<em>Save settings<\/em>.<\/p>\n<p>Now your sitemaps are generated and publicly accessible. WordPress SEO will show a\u00a0<strong>XML Sitemap<\/strong>\u00a0button which you can click to view your\u00a0sitemap_index.xml\u00a0sitemap.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a number of ways that we can create xml sitemap in WordPress. We will use the yoast seo plugin to achieve this. We use this plugin because it allows us to\u00a0optimize our blog posts\u00a0along with offering other features such as sitemaps, social integration, and more. We have also noticed that it works more [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1838],"doc_tag":[],"class_list":["post-5527","docs","type-docs","status-publish","hentry","doc_category-wordpress"],"year_month":"2026-07","word_count":194,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"simon m","author_nicename":"simon","author_url":"https:\/\/truehost.com\/support\/author\/simon\/"},"doc_category_info":[{"term_name":"WordPress","term_url":"https:\/\/truehost.com\/support\/docs-category\/wordpress\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create sitemap in WordPress -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create sitemap in WordPress -\" \/>\n<meta property=\"og:description\" content=\"There are a number of ways that we can create xml sitemap in WordPress. We will use the yoast seo plugin to achieve this. We use this plugin because it allows us to\u00a0optimize our blog posts\u00a0along with offering other features such as sitemaps, social integration, and more. We have also noticed that it works more [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-21T08:31:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/08\/xml-300x185.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-sitemap-wordpress\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-sitemap-wordpress\\\/\",\"name\":\"How to create sitemap in WordPress -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-sitemap-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-sitemap-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/xml-300x185.jpg\",\"datePublished\":\"2018-08-24T11:03:41+00:00\",\"dateModified\":\"2024-06-21T08:31:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-sitemap-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-sitemap-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-sitemap-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/xml-300x185.jpg\",\"contentUrl\":\"https:\\\/\\\/www.truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/xml-300x185.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/create-sitemap-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create sitemap in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create sitemap in WordPress -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to create sitemap in WordPress -","og_description":"There are a number of ways that we can create xml sitemap in WordPress. We will use the yoast seo plugin to achieve this. We use this plugin because it allows us to\u00a0optimize our blog posts\u00a0along with offering other features such as sitemaps, social integration, and more. We have also noticed that it works more [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/","article_modified_time":"2024-06-21T08:31:31+00:00","og_image":[{"url":"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/08\/xml-300x185.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/","name":"How to create sitemap in WordPress -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/08\/xml-300x185.jpg","datePublished":"2018-08-24T11:03:41+00:00","dateModified":"2024-06-21T08:31:31+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/#primaryimage","url":"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/08\/xml-300x185.jpg","contentUrl":"https:\/\/www.truehost.co.ke\/support\/wp-content\/uploads\/2018\/08\/xml-300x185.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/create-sitemap-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to create sitemap in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/5527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=5527"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/5527\/revisions"}],"predecessor-version":[{"id":5529,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/5527\/revisions\/5529"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=5527"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=5527"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=5527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}