Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Vad är en Sitemap i XML? Så här skapar du en Sitemap i WordPress

Undrar du vad en XML sitemap är och hur du addar den till din website i WordPress?

En XML sitemap hjälper search engines att enkelt navigera genom innehållet på din website. Den ger dem en lista över allt ditt content i ett maskinläsbart format.

I den här artikeln förklarar vi vad en XML-webbplatskarta är och hur du enkelt kan skapa en webbplatskarta i WordPress.

What is an XML Sitemap and how to create one for your WordPress site

Vad är en Sitemap i XML?

En XML sitemap är en fil som listar all content på din website i ett XML-format så att search engines som Google lätt kan hitta och indexera ditt innehåll.

I början av 2000-talet hade myndigheternas webbplatser en länk på huvudsidorna med rubriken ”Sitemap”. Den här sidan innehöll vanligtvis en lista över alla viktiga pages på den aktuella webben.

Även om vissa websites fortfarande har HTML sitemap pages idag, har den övergripande användningen av sitemaps evolverat genom åren.

Idag publiceras sitemaps i ett XML-format istället för i HTML, och målgruppen är search engines eller ej människor.

I grund och botten är en XML sitemap ett sätt för webbplatsägare att berätta för search engines om alla pages som finns på deras website.

Det berättar också för search engines vilka links som är viktigare än andra och hur ofta you update your website.

XML sitemaps kommer inte att öka din ranking hos sökmotorerna, men de gör det möjligt för sökmotorerna att crawla din website bättre. Det innebär att de kan hitta mer content och börja visa det i sökresultaten, vilket resulterar i mer söktrafik och förbättrad sökmotorsoptimering.

Därför behöver du en Sitemap i XML

Sitemaps är extremt viktiga ur sökmotorsoptimeringens (SEO) view.

Att bara lägga till en sitemap-fil kommer ej att påverka din ranking. Men om det finns en page på din site som ej är indexerad, så kommer en sitemap att låta search engines veta om den page.

Sitemaps är extremt användbara när du först startar en blogg eller skapar en ny website eftersom de flesta nya websites inte har några backlinks. Detta gör det svårare för search engines att upptäcka allt ditt content.

Det är därför som search engines gillar Google och Bing allow new website owners to submit a sitemap in their webmaster tools. This allows their search engine bots to easily discover and index your content (mer om detta senare).

Sitemaps är lika viktiga för etablerade populära webbplatser också. They allow you to highlight which parts of your website are more important and which parts are more frequently updated so that search engines can index your content accordingly.

Med detta sagt, låt oss ta en titt på hur man skapar en XML-webbplatskarta i WordPress.

Video Tutorial

Subscribe to WPBeginner

Om du föredrar skriftliga instruktioner är det bara att fortsätta läsa.

Det finns flera olika sätt att skapa en XML-webbplatskarta i WordPress. Vi kommer att visa dig tre populära metoder för att skapa en XML-webbplatskarta i WordPress. Vi kommer också att visa dig hur du submitterar dina sitemaps till search engines och använder dem för att få din site att växa.

Metod 1: Skapa en XML Sitemap i WordPress utan ett plugin

Denna metod är mycket grundläggande och utvald i termer av funktioner.

Före augusti 2020 hade WordPress inte built-in sitemaps. Men i WordPress 5.5 släppte de en grundläggande funktion för XML-webbplatskartor.

Denna utvalda funktion allow dig att automatiskt skapa en XML sitemap i WordPress utan att använda ett plugin. Du kan helt enkelt add to wp-sitemap.xml i slutet av ditt domain name, gillar detta:

https://www.example.com/wp-sitemap.xml

WordPress kommer att visa dig standard XML-webbplatskartan.

Default WordPress XML sitemap

Denna funktion för XML-webbplatskartor lades till i WordPress för att se till att alla nya WordPress-webbplatser inte går miste om sökmotorsoptimeringen med en XML-webbplatskarta.

Det är dock inte särskilt flexibelt, och du kan inte enkelt kontrollera vad som ska add to eller remove från your XML sitemaps.

Lyckligtvis kommer nästan alla högst upp WordPress SEO tillägg med sin egen sitemap-funktionalitet. Dessa webbplatskartor är bättre, och du kan kontrollera vilket content som ska remove eller uteslutas från dina WordPress XML-webbplatskartor.

Metod 2: Skapa en XML Sitemap i WordPress med hjälp av AIOSEO

Det enklaste sättet att skapa en XML-webbplatskarta i WordPress är att använda pluginet All in One SEO (AIOSEO) för WordPress.

Det är det bästa sökmotorsoptimeringspluginet för WordPress på marknaden, och erbjuder you en generator för sitemap och en omfattande uppsättning tools för att optimera dina blogginlägg för SEO.

Först måste du installera och aktivera pluginet All in One SEO. För mer detaljer, se vår Step-by-Step guide om hur du installerar ett plugin för WordPress.

Funktionen för webbplatskartor är också tillgänglig i AIOSEO Free-versionen. Men för att få avancerade news sitemap och video sitemap behöver du Pro-versionen.

Efter aktivering, gå till All in One SEO ” Sitemaps page för att reviewer sitemap settings.

Enable sitemap in All in One SEO

Som standard aktiverar All in One SEO funktionen Sitemap för you och ersätter de grundläggande sitemaps från WordPress.

Du kan klicka på knappen ”Öppna Sitemap” för att förhandsgranska den och se hur den gillar att se ut. Du kan också view din sitemap genom att lägga till sitemap .xml till din websites URL, t.ex:

https://www.example.com/sitemap.xml

All in One SEO XML sitemap preview

Som Beginner behöver du inte göra någonting, eftersom standardinställningarna fungerar för alla typer av webbplatser, bloggar och onlinebutiker.

Du kan dock customize inställningarna för sitemap för att kontrollera vad du vill inkludera i din XML sitemap.

Rulla bara ner till ”Sitemap Settings” section.

AIOSEO Sitemap settings

I det här avsnittet får du alternativ för att hantera index för webbplatskartor och inkludera eller exkludera post typer och taxonomier (kategorier och tags). You can also enable XML sitemaps for date-based archives and author archives.

All in One SEO inkluderar automatiskt allt ditt content i WordPress i XML-sitemaps. Men vad händer om du har fristående sidor som ett kontaktformulär, en landing page eller Shopify store pages som inte är en del av WordPress?

AIOSEO är det enda plugin som låter dig add to externa pages till din WordPress sitemap. Rulla bara till ”Additional Pages” section och slå på den. Detta kommer att visa dig ett formulär där du kan add to alla customize pages som du vill inkludera.

Adding additional pages to your WordPress XML sitemap

Du behöver bara add to URL:en till den page som du vill inkludera och sedan ange en prioritet där 0.0 är lägst och 1.0 är högst. Om du är osäker rekommenderar vi att du använder 0.3.

Därefter väljer du frekvensen för updating och datumet för när sidan senast ändrades.

Du kan klicka på knappen ”Add New” om du behöver lägga till fler pages.

Glöm inte att klicka på knappen ”Save Changes” för att spara dina inställningar.

Undanta specifika posts och pages från din Sitemap i XML

All in One SEO allow you to exclude any post or page from your XML sitemaps. Du kan göra detta genom att clicka på ”Advanced Settings” section på All in One SEO ” Sitemaps page.

Excluding items from your WordPress XML sitemap

Du kan också remove ett post eller en page från your XML sitemaps genom att göra den no-index och no-follow. Detta blockerar search engines från att visa det innehållet i sökresultaten.

Du behöver bara editera den post eller page som du vill exkludera och rulla ner till AIOSEO Settings box under editorn.

Removing a post or page from XML sitemap using robots.txt

Härifrån måste du växla till fliken Avancerat och kontrollera boxarna bredvid alternativen ”Inget index” och ”Inget följ”.

Skapa ytterligare Sitemap

All in One SEO allow you to create additional sitemaps, such as a video or news sitemap.

Du kan skapa en video sitemap om du regelbundet embedar videoklipp i dina blogginlägg eller pages. Detta gör det möjligt för search engines att visa posts i sök- och videosökresultat tillsammans med en video thumbnail.

Video search results showing video thumbnail

Du kan också skapa en News sitemap om du run en news website och vill synas i Google News search resultat.

Gå bara till All in One SEO ” Sitemaps och växla till flikarna Video Sitemap eller News Sitemap för att generera dessa sitemaps.

Generating video and news sitemaps in All in One SEO

Sammantaget är AIOSEO det bästa WordPress plugin eftersom det ger dig all flexibilitet och kraftfulla funktioner till ett mycket överkomligt pris.

Metod 3: Skapa en XML Sitemap i WordPress med hjälp av Yoast sökmotorsoptimering

Om du använder Yoast SEO som din WordPress sökmotorsoptimering plugin, då slår den också automatiskt på XML sitemaps för you.

Först måste du installera och aktivera pluginet Yoast sökmotorsoptimering. För mer detaljer, se vår Step-by-Step guide om hur du installerar ett plugin för WordPress.

När du är aktiverad går du till sökmotorsoptimering ” Allmänt page och byter till tabben ”Funktioner”. Härifrån måste du rulla ner till alternativet ”XML Sitemap” och se till att det är påslaget.

Yoast SEO XML Sitemap option

Därefter klickar du på knappen ”Save Changes” för att store dina ändringar.

För att kontrollera att Yoast sökmotorsoptimering har skapat en XML-webbplatskarta kan du klicka på ikonen med frågetecknet bredvid alternativet ”XML-webbplatskartor” på sidan.

View XML Sitemap created by Yoast SEO plugin

Efter det klickar du på länken ”See the XML Sitemap” för att view your live XML sitemap genererad av Yoast sökmotorsoptimering.

Du kan också hitta din XML-webbplatskarta genom att helt enkelt lägga till sitemap_index.xml i slutet av adressen till din website. Till exempel:

https://www.example.com/sitemap_index.xml

Yoast SEO sitemap

Yoast sökmotorsoptimering skapar flera sitemaps för olika typer av content. Som standard genererar den sitemaps för posts, pages, authors och categories.

Submitting Your XML Sitemap till Search Engines

Search engines är ganska smarta när det gäller att hitta en sitemap. Varje gång du publicerar new content skickas en ping till Google och Bing för att informera dem om ändringar i din sitemap.

Vi rekommenderar dock att you submit sitemap manuellt för att säkerställa att search engines kan hitta den.

Submitting Your XML Sitemap till Google

Google Search Console är ett gratis verktyg som erbjuds av Google för att hjälpa webbplatsägare att övervaka och underhålla webbplatsens närvaro i Googles sökresultat.

Genom att lägga till din sitemap i Google Search Console kan den snabbt upptäcka ditt content, även om din website är helt new.

Först måste du besöka Google Search Console website och registrera dig för ett account.

Därefter blir du ombedd att selecta en egenskapstyp. Du kan välja en domän eller ett URL-prefix. Vi rekommenderar att du väljer ett URL-prefix eftersom det är enklare att konfigurera.

Select property type

Enter your website’s URL och klicka sedan på knappen ”Continue”.

Därefter kommer du att bli ombedd att kontrollera ägandet av webbplatsen. Du kommer att se flera metoder för att göra det. Vi rekommenderar att du använder metoden med HTML-taggar.

Google Search Console verify site ownership

Kopiera bara koden på vyn och gå sedan till admin area på din website i WordPress.

Om du använder AIOSEO kommer det med enkel verifiering av webmaster tools. Gå bara till All in One SEO ” Allmänna Settings och klicka sedan på tabben ’Webmaster Tools’. Efter det kan du enter koden från Google där.

AIOSEO Site Verification

Om du ej använder AIOSEO kan du enter koden med hjälp av tillägget WPCode. Detta är det säkraste och enklaste sättet att add to kod till din WordPress site.

Du måste installera och aktivera WPCode Free Plugin. För mer detaljer, se vår Step-by-Step guide om hur du installerar ett WordPress plugin.

Efter aktivering måste du besöka Code Snippets ” Header & Footer page och add to koden du kopierade tidigare i ’Header’ boxen.

Add your verification code in the header section

Glöm inte att clicka på knappen ”Save Changes” för att store dina ändringar.

Gå nu tillbaka till tabben Google Search Console och klicka på knappen ”Verify”.

Google kontrollerar om det finns en verifieringskod på din site och lägger sedan till den i ditt Google Search Console account.

Note: Om verifieringen inte lyckas, vänligen se till att du clearar din cache i WordPress och försök sedan igen.

Nu när du har lagt till din website, låt oss lägga till din XML sitemap också.

Från instrumentpanelen för ditt konto måste du klicka på ”Sitemaps” i den vänstra kolumnen.

Add sitemap to Google Search Console

Efter det måste du lägga till den sista delen av din sitemap URL under ”Add a new sitemap” section och klicka på ”Submit” knappen.

Google kommer nu att add to din sitemap URL till din Google Search Console.

Det kommer att ta Google lite tid att crawla din website. Efter ett tag kommer du att kunna se grundläggande statistik för webbplatskartan.

Den här informationen inkluderar antalet links som Google hittade i din sitemap, hur många av dem som indexerades, förhållandet mellan images och web pages med mera.

Sitemap stats in Google Search Console

Submitting Your XML Sitemap till Bing

I likhet med Google Search Console erbjuder Bing också Bing Webmaster Tools för att hjälpa webbplatsägare att övervaka sin website i Bing search engine.

För att add to your sitemap till Bing, måste du besöka Bing Webmaster Tools website.

Här kommer du att se två alternativ för att add to din site. You can either import your site from Google Search Console or add it manually.

Create account in Bing Webmaster Tools

Om du redan har addat din site till Google Search Console föreslår vi att du importerar din site. It saves time as your sitemap will automatically be imported for you.

Om du väljer att lägga till din webbplats manuellt måste du enter webbplatsens URL och kontrollera webbplatsen.

Bing kommer nu att be dig att kontrollera ägandet av din website och kommer att visa dig flera metoder för att göra det.

Vi rekommenderar att du använder metoden Meta tagged. Kopiera bara raden med meta-taggen från sidan och heada över till din WordPress dashboard.

Copy meta tag to verify site in Bing Webmasters Tool

Installera och aktivera nu WPCode Free Plugin på din website

Efter aktivering måste du besöka Code Snippets ” Header & Footer page och add to koden du kopierade tidigare i ’Header’ boxen.

Add Bing verification code

Glöm inte att clicka på knappen ”Save Changes” för att store dina ändringar.

Använd XML Sitemaps för att utveckla din website

Nu när du har skickat in XML sitemap till Google och Bing, låt oss ta en titt på hur du använder den för din website.

Först måste du komma ihåg att XML-webbplatskartan inte förbättrar din ranking. Det hjälper dock search engines att hitta content, justera crawl-hastigheten och förbättra din websites synlighet i sökmotorer.

Du måste hålla ett öga på statistiken för din webbplatskarta i Google Search Console. Det kan visa dig crawl error och de pages som är uteslutna från search täckning.

Sitemap coverage

Under diagrammen kan du klicka på de olika tabellerna.

Här kan du view vilka faktiska URL:er som har uteslutits eller ej indexerats av Google.

Sitemap URLs reports

Normalt kan Google besluta att hoppa över duplicerat innehåll, sidor utan innehåll eller med mycket lite innehåll och pages som utesluts av din websites robots.txt-fil eller metataggar.

Men om du har ett ovanligt stort antal uteslutna pages, kanske du vill kontrollera inställningarna för ditt sökmotorsoptimering plugin för att se till att du inte blockerar något content.

För mer details, se vår kompletta Google Search Console guide för nybörjare.

Vi hoppas att den här artikeln hjälpte dig att lära dig mer om XML-webbplatskartor och hur du skapar en XML-webbplatskarta för din WordPress-webbplats. Du kanske också vill se vår guide om hur du snabbt ökar trafiken på din website med Step-by-Step-tips och våra expertval för de bästa keyword research tools för att skriva bättre content.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

270 kommentarerLämna ett svar

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Christopher Ebling

    I only get options that say Dashboard Search Console and Go Premium I don’t see site map as an option how do I get it to do the site map so I have to pay the 97$

    • WPBeginner Support

      Hey Christopher,

      The option is moved to the advanced settings pages. Please see our updated guide on setting up Yoast SEO plugin and check step 3 which shows how to enable advanced settings and then step 9 which shows how to enable sitemaps.

      Administratör

  3. Deepika Bisht

    Yoast seo best way to create a good sitemap for a wordpress blog. Thanks for share it.

  4. Mahmoud

    i already have my sitemap XML , but i need to regenerate it .
    what is the best way to do that ?

  5. chittara

    OMG it helped me loads and loads…thanks a lot

  6. Shane Jackson

    Thanks, this helped a lot!

  7. Vin Boris

    Very informative content. It is a good information with good knowledge, my most of doubts get cleared with this.

  8. Justin Lanouette

    how do you add a sitemap to wordpress.com sites?

  9. Abdul Asif

    can you explain, what must be included in sitemaps, whether all posts, category, tags etc..

  10. Angela - CRD Founder

    Amazing article! no-one could explain the Sitemap thing better than you. Thanks so much!! I’ve just followed all the steps (for the verification method, I chose ”Domain Name Provider”, by the way)

    So my website is roughly a month old and I’ve only just added the YOAST plugin and sitemap today. How much time does it take for Google to recognize it? Right now, I have this message in my Webmaster Tools:

    ”Error details: 1 Errors, 0 Warnings.

    ”We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.

    ”Network unreachable: Network unreachable”

    What does it mean, please?

    • andy

      thanks! this is great!

  11. Valentine

    Nothing to comment again because the process was straight forward. Thanks so much

  12. Toma

    First off, I`d like to say ”thank you” for all your support and guidance to the new WP users.

    I`ve created a sitemap, however Google is telling me that the URL is restricted by robots.txt

    My robots.txt file look like this:

    User-agent: *
    Disallow: /

    Sitemap: http://www.example.com/sitemap.xml

    Checks:
    sitemap.xml has been tested and is working as expected.
    I`ve checked the site variants (www and non-www)
    I understand that in WP Admin, under Search Engine Visibility it is possible to encourage search engines to index the site. My understanding is that doing so will modify the robots.txt file and will allow all robots to crawl my site – including the ”bad” crawlers (I`ve read this on other tutorials).

    Any further assistance will be greatly appreciated.

    Regards,

    Toma.

  13. danielsonjosh

    this is fabulous!!!!!! great work

  14. Abhinav

    The yoast sitemap page is showing ”Warning: Class __PHP_Incomplete_Class has no unserializer in /home/content/n3pnexwpnas01_data02/78/3160178/html/wp-content/object-cache.php on line 520”, followed by url’s. This is the case with sitemap_index as well as sitemaps contained within. Sometime it shows right format and sometimes the similar error for the same post/page/index sitemap. How can I fix this?

  15. Quanglepro

    Hello,

    Your tip is very detail. But can i ask some more thing. I am new wordpresser from Viet Nam, I meet the problem with sitemap of Yoast seo.

    After Save changes the Sitemap of Yoast, Then i go to Google console to add ” sitemap_index.xml ” for index.

    After add sitemap_index.xml, It just show the blue color culumn, dont have any red color column for Index.

    It is PASS or FAIL? How can i know google console indexed my sitemap or Not index for this case.

    Nice day
    Quangle

    • WPBeginner Support

      If there is an error, Google will display the error. Otherwise you should see your sitemap accepted.

      Administratör

      • Quanglepro

        It is done sir. After 2 days, it will be indexed. Google doesnt index immediately.
        Nice day.

      • ArParvez

        dear sit iam seeing ur video and tutorial, using how to seo wordprees ytoast. i have done it, but when i try to see xml file it tell error/page not found but when i test this link on google sitemap it say no error found, but its empty. what should i do. and also i am getting problem using wordprees, i think i have done some mistake to install wp. i have install via Android phn.and sometime when i want to delete some plugin it tell error database,can u guys help me to reinstall wordprees pls it will be greatfull. tnx

  16. Alessio

    Hi guys,
    do I still need a dedicated plugin for the sitemap or does the latest version of WP come with something for the sitemap too?

  17. suji

    After installing Yoast plugin i got the below msg!

    The plugin Yoast SEO has been detected. Do you want to import its settings into All in One SEO Pack?

    wat do i need to do?

      • Suji

        Hi,

        Thanks for the reply. I disabled All in one SEO plugin. I have one more query. Can you pls answer it?

        I have already verified my site using HTML file upload method, so now how can i generate a sitemap using Yoast SEO plugin?

  18. Summer Breeze

    Thank you so much! This was immensely helpful.

  19. Jacqui Rawson

    Thanks guys!
    This was really helpful.
    You’re making my stress levels deflate immensely with all your assistance on getting my site all SEO set up.
    Cheers

  20. Emma

    Thank you for the step-by-step instructions – really helped me to understand WP and Google further.

    Keep up the good work!

  21. Abhyank

    ”If you have a sitemap that is located on example.com/sitemap.xml, your sitemap is not being generated by our Yoast SEO plugin. It is probably generated by Google XML Sitemaps or another XML sitemaps plugin. Please disable other sitemap plugins and remove any sitemap files via FTP before enabling the sitemaps in our plugin.”

    How do i get around this?

    • WPBeginner Support

      Simply go to your plugins page. See if you have a plugin installed that adds XML sitemap. If you do, then disable that plugin.

      Administratör

      • Abhyank

        I really can’t figure out if any of my plugins are making a sitemap, i don’t think i have installed any that do. So terribly confused.

        • WPBeginner Support

          Then try disabling all plugins except Yoast SEO. Then try go to sitemaps, if you don’t see the message then this means one of the plugin was causing that. You can then activate plugins one by one and visit the sitemaps screen to see if the error reappears. Do that until you find the plugin causing it.

          On the other hand if you see the message even after deactivating all plugins, then it could be your WordPress theme or a manually created file on your server.

  22. Yuvraj Khavad

    Hello,
    Thanks for this tutorial.
    Very mush informative post.

    Thanks
    Yuvraj Khavad

  23. Dawit

    Thanks! very helpful.

  24. Erin

    Thank you for this informative article.
    I have notice that some of my pages are not included in the sitemap generated in WordPress using the Yoast SEO – XML sitemap tool. Is there a way to manually enter the missing pages or to update the sitemap to include these pages?

  25. Galib

    Really easy to follow and create a site map!!

  26. Jo

    Thank you! I think I have created what was needed and it was easy. Instructions were clear and easy to follow, thank you.

  27. Annika

    Hi there,
    I’ve read through a lot of pages trying to explain what you did, but seriously, yours is BY FAR the best. Easy to understand, one-by-one explanations. Thanks for your great help, you probably just saved me hours and hours of work.
    Cheers,
    Annika

  28. Magaly

    Great info, very useful! :)
    Now will wait for Google Analitycs to do his work :P

  29. Suraj

    Very helpful article n screenshots makes it easy to understand!! Thanks for posting!!

  30. kksilvery

    Hi,

    It was easy to understand. My question is , how can i edit my blog current sitemap?

    Regards,
    kksilvery.

  31. Kay Collier

    Thank you once again for more valuable information.

  32. Josh Watson

    SUPER useful article! I really appreciate the info! This saved me so much time and hassle. I had looked at a couple other guides and they were just confusing.

    I used this on my site and it really saved us!

  33. Shailesh Jangra

    Hi Syed Balkhi,

    Great post over sitemaps. I have one question for you.
    I have sitemap_index.xml for my website (without www ) but now I set my website to www version. I can see that all pages automatically changes with www version but sitemap_index dosn’t. Any specific reason.

    Also it shows nothing on but at sitemap_index.xml page I have complete sitemap.

    What is the mistake?

    • WPBeginner Support

      Since you have set your website URL on www your sitemap will be published on the same URL.

      Administratör

  34. zeeshan khan

    My site map shows the staticstics of web page but not show the staticstics of images. why not show image in my site map help me please.

  35. Tom Horn

    Whenever I submit the sitemap this is the message I get:

    ”Your Sitemap does not contain any URLs. Please validate and resubmit your Sitemap.”

    Can you tell me what to do? Thanks.

  36. Leo

    I am having serious problems regarding sitemaps for a few months ago. I am using a wordpress hosted by godaddy. I’ve installed SEO by Yoast and did the sitemaps tutorial you had. Site’s is connecting, the sitemap is there, but the specific links (posts, pages, author, etc) are pending.

    We wait 48 hours, and none. We try it so many times, re-submitted, and yet Google search console is not crawling our site correctly.

    I don’t know what to do! Does it has to do with our theme? Godaddy told us there’s nothing blocking it on their side. And every time i look on the internet, many people are still having the same issue. Noticed that our site is working correctly and so are the feeds. But we are not crawling anything… Please if somebody already solved this, tell us, maybe someone else will going to solve this terrible issue

  37. Jess @ Make and Do Crew

    Thanks for this! It’s the clearest explanation I’ve seen. How long does it take for Google to crawl it? I can’t seem to get to that final visual you showed with the total number of pages and images indexed, although I haven’t gotten any sort of message that google is still working on it. Like, should I check back tomorrow? And if so, can you tell me exactly what to click on to find the confirmation that the site has been fully crawled? Thanks again!

  38. John

    Thanks for the info. As an addition: if the sitemap url gives a 404 then try lowering the default value of 1000 for the maximum number of lines. Worked for me.

    • Tamsin

      Thank you for your solution. I changed the default value to 200 and it works! I have spent the last week trying to get my head around this stuff being a complete beginner. You have saved my sanity.

  39. Israel

    please, after i clicked on the XML Sitemap

    what i got is error,

    Error 404 Not Found
    Oops! We couldn’t find this Page.

    Please check your URL or use the search form below.

    Please what can i do to get mu sitemp. thanks

    • Taranpreet Singh

      same problem is with me. have you solved the problem.

      • Austin

        Same issue, no sitemap on my free .wordpress.com site. How do we fix this or create one?

  40. ramin ziafat

    thank you it was great

  41. surya teja

    thank you for the great article .

    i am having a problem . i am using free wordpress of name ( free domain sitename.wordpress.com ) i am not understanding how to add the site map at now

  42. Nitika

    nice article! apart from this do we need to enter google authorisation code?

  43. Leo

    Hi,

    Thank you so much for the easy-to-follow instructions and well explained topic about sitemaps.

    My question is How to add a ’single’ page or post which displays all your posts. I hope you got what i mean.

    I saw a blog, at the bottom of the page there is a clickable link called ’sitemap’. when you click it, it will bring you to a page containing all the published post or articles or i suppose, ”the sitemaps”.

    How can i do these type of ’clickable link’???

    Thank you very much.

  44. Naveen

    Nice article ! But when i submitted the sitemap, it is showing 0 url submitted at the dashbard area

  45. Kris letcher

    Thanks for the concise information.
    Kris

  46. Deb Slater

    Wow. wpbeginner is the very best instruction I have found for my WordPress site. Thank you.

  47. Harrison Okoyibo

    I just want to say a big ”THANK YOU” for your efforts providing the internet wordpress users with useful, and relevant information, articles, and tutorials. Wishing you and your team more of God’s blessing. Shalom!

  48. Luigi

    Thank you for this tutorial! It was really helpful! :)

  49. Ana

    Thank you for your tutorial and info. It really helped me with the sitemap! Great job!

  50. Ezekiel

    Thank you for this explanation. I am indeed grateful for it.
    Your tutorials in this site has always been helpful

  51. Kaleem Ullah

    Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead. need help

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.