Karailiev’s sitemap

This plugin adds a XML sitemap to your blog. It’s used to show all your pages and posts to the search engines like Google, Yahoo and MSN. The plugin is really simple to use. After installation you need just to activate it.


  1. Download the zip file (latest version | older versions).
  2. Unzip it and copy the folder named karailievs-sitemap into <blog_root>/wp-content/plugins folder.
  3. In the administrator’s panel go to Plugins, find the plugin in the list and click activate.
  4. Go to Settings->Sitemap. If you see an Error message about sitemap.xml look at the next step. If you do not see any errors skip the next step.
  5. Create writeable sitemap.xml file into the blog’s root folder (that’s where index.php file is).
    In case you use Linux hosting you can either change the file’s owner to the user that the web server uses (I have default Apache 2 installation and the username is www-data) or to change the file’s permissions and make it writable to everyone.
    If you have SSH access you can follow these steps:

    1. Login to your account
    2. Type cd /path/to/your/blog/
    3. Type touch sitemap.xml
    4. In case you have root access login as root and type chown <webserver-username> ./sitemap.xml
      In case you do not have root access or do not know the web server’s username type chmod 666 ./sitemap.xml
    5. Logout

    If you have some problems doing this, contact your hosting support. Explain them what you need and they may be very helpful.

  6. In the administrator’s panel go to Settings->Sitemap. By turning the sitemap on you generate your initial sitemap. If you skip this step the sitemap will be generated automatically when you write new post, but will contain only the blog’s homepage. You need to do this only the first time.

Thats all.


To access the sitemap’s settings go to your dministrator’s panel->Settings->Sitemap. There few checkboxes. The plugin will work fine with the default settings.

Note: When it’s on the plugin will update the sitemap file every time the blog’s content changes. When it’s off the sitemap will still be there, but only the homepage will be included.


This plugin is under GPL. This means you can use it, modify it and distribute it free of charge. But if you like it and want to support the future development you can donate via PayPal. I will also appreciate if you link me in you blog, so the plugin gets more popular.


If you have some questions, bug reports, suggestions, want personal modifications or just want to let a comment, you can do it here. I’ll try to answer ASAP.

173 Responses to “Karailiev’s sitemap”
  1. I have given everyone write permissions to the file in the root sitemap.xml. When I click on Settings in the administrators panel I get this error:

    Fatal error: Call to undefined function: file_put_contents() in /home/…/wp-content/plugins/karailievs-sitemap/ksm.php on line 59

    Please help! Thanks!

  2. Eileen, this and other bugs are fixed in version 0.2.3.
    It’s highly recommended for everyone to update to it.
    The latest version could be downloaded here: http://downloads.wordpress.org/plugin/karailievs-sitemap.zip

  3. Hey I love your Plugin, beacause it’s simple and working :) But I have one little problem: There are only post’s and pages in the xml… no categories like blog/category/one

    Is there a way to include categories and other archive pages like tags in the sitemap?


  4. Christian, I’m glad you like it. At the moment there are only the posts and the pages in the XML.
    But it’s in my todo list to add the categories and the tags.
    I’m planing new release in few days. I know it’s not very convenient to update plugins every week, but this is a young project and I run some tests after every change and release it, so everyone can use the new functionality as soon as possible.

  5. Matteo says:

    hello, i’m receiving some errors every time after posting articles but all seems perfect for visitors, it seems this kind of errors doesn’t happend during normal navigation of my site. Here you can find this kind of errors:

    Warning: mysql_query() [function.mysql-query]: Access denied for user ‘nobody’@'localhost’ (using password: NO) in /home/…/public_html/wp-content/plugins/karailievs-sitemap/ksm.php on line 97

    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/…/public_html/wp-content/plugins/karailievs-sitemap/ksm.php on line 97

    Warning: Cannot modify header information – headers already sent by (output started at /home/…/public_html/wp-content/plugins/karailievs-sitemap/ksm.php:97) in /home/…/public_html/wp-includes/pluggable.php on line 694

  6. It looks like the connection to the MySQL server is lost.
    Can you tell me which WordPress version are you using and what other plugins do you have activated.

  7. Matteo says:

    Hello, is it possible to give you trough email plugin list and if you need, dedicated server specs ? Thanks :)

  8. hi. Thanks for plugin


    best regards


  9. works great..thank you..does it ping google?

  10. tanicos, in this version it does NOT ping Google.
    But it’s in the todo list for the new release.
    (I’m glad you like it ;) )

  11. okay i did everything as stated when i get to the part where i hit the save and rebuild it automaticly made the sitmap.xml for me but it gives me a page that says noted below however the file is still made but it does not have any information noted below. is it suppose to have more info in there?

    404 – File or directory not found.
    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

  12. It looks like you are doing everything right.
    What happens when you post new article or page?

  13. It works great. However, because I have my blog files in a different directory I need to change the directory where the sitemap.xml is created. How do I do this?

  14. It’s not possible at the moment.
    I’ll release new version in a couple of days.
    There will be some new features including changing the sitemap’s location.

  15. it seems to be working now it has updated itself with all the right information now just had to update one of my post… am i suppose to be able to get to myblog/sitmap.xml page

  16. Yes.
    You can see it at http://www.nujusan.com/sitemap.xml

  17. There is new version released. It can change the sitemap’s location and it pings Google.

  18. Thank you very much for this easy to use plugin.
    Seems that I have the honour to comment on the latest version released today: if have no problems at all and everything works fine.

    You released this plugin right on time for me.

    Keep up the good work! I’ll post a link on my website.


  19. Thank you alot Валентин !!

  20. I’ve installed the plugin but when I try to activate it I get the following error message:
    Fatal error: Call to undefined function: get_headers() in /htdocs/www/wp-content/plugins/karailievs-sitemap/ksm.php on line 219

    Any idea what’s wrong?

  21. I have the latest version 0.5 and I have enabled permissions for anyone to write to sitemap.xml. Please help with the following error. When I am publishing a new post it takes me to a page with this error:

    Fatal error: Call to undefined function: get_headers() in /home/content/e/m/c/emctara57/html/wp-content/plugins/karailievs-sitemap/ksm.php on line 219

    Help?? Thanks!

  22. @Bodhipaksa and EC Akes: this is because you are using PHP4.
    I’ll release new version today compatible with PHP4&5

  23. The new release is ready.
    It’s completely compatible with PHP 4.3+ and PHP 5.
    You can download it here: http://downloads.wordpress.org/plugin/karailievs-sitemap.zip

  24. Thanks for the quick response, but now I’m getting the following errors:

    Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /htdocs/www/wp-content/plugins/karailievs-sitemap/ksm.php on line 220

    Warning: fopen(http://www.google.com/webmasters/tools/ping?sitemap= http%3A%2F%2Fwww.wildmind.org%2F.%2Fsitemap.xml) [function.fopen]: failed to open stream: no suitable wrapper could be found in /htdocs/www/wp-content/plugins/karailievs-sitemap/ksm.php on line 220

    Warning: fclose(): supplied argument is not a valid stream resource in /htdocs/www/wp-content/plugins/karailievs-sitemap/ksm.php on line 221

  25. Is this will send ping to google also that sitemap now updated.

  26. I’m not sure if you ask this, but….
    Yes it pings google every time the sitemap is updated, but no more than once per hour.

  27. Hi,

    The plugin seems to work fine for me but there seems to be a problem with the style sheet. This is the message that i get: “This XML file does not appear to have any style information associated with it. The document tree is shown below.”

    How can i fix this?

  28. @Edwin: the sitemap is an XML file supposed to be read by web spiders and they don’t need styleshhets.
    So that’s the reason there isn’t any. But this is not a problem. The fact you see this message shows that the XML file is valid and everything is OK.

  29. Добрый день выдает следующую ошибку – файл sitemap.xml не существует, и плагин не может его создать.
    Вопрос.. файл sitemap.xml нужно создавать обсолютно пустым? или в него нужно что то вставлять?

  30. Thanks dude , it work perfect.

  31. @Pavel: Все равно, если файл пустой или – нет. Его содержание будет перезаписано /уничтожено/.
    Сколько смотрю, у тебя, на http://ogamers.ru/sitemap.xml все OK.

  32. Hello,

    Thank you for the plugin. One of the few site maps that sets up without errors.

    One Question please. Is this the way the sitemap.xml is suppose to look?

    It looks like the code view and of course you cannot click to navigate the links.

    Did I do something wrong?

    Thank you for your time.






  33. Hello Robert!
    I’m glad you like the plugin.
    It’s all OK.
    These are just all addresses formated the way web spiders like.
    They add the links to their databases and when the time comes they visit the pages.
    The sitemap is not supposed to be visited by regular users, so there are no links to click on.

  34. [...] community is quite large. I’ve managed to migrate my articles, add Google Syntax Highlighter, Google Sitemap, and Google Analytics along with some simple PHP tweaks to this cool theme over the course of 2 [...]

  35. [...] Kariliev’s Sitemap – Generates a dynamic sitemap file for bots. [...]

  36. Check out my site now i got the qr code on my site… if you like it i can let you know how i did it

    cheers Nuju Castle

  37. Виталий says:

    Валентин, спасибо за плагин – простой, удобный и делает ровно то что надо.
    Предложение: добавь возможность выводить в сайтмап сначала страницы, потом – посты. Или наоборот. Или как сейчас. Три варианта. Мне вот нужно было страницы вперед пустить, пришлось запрос подправить малость.

  38. @Виталий: В следующую версию можно ето сделано, но думаю что изчищие программ не принемают под внимане етово порядка, а стойность priority важнейшая.
    P.S. я рад, что плагин тебе нравится

  39. I started going through Google’s webmaster tools today and the sitemap was the first thing on my list. This handled it perfectly.

    Only suggestion I have is an XHTML veiw (doesn’t need to be pretty) that I can link to from the site itself.


  40. @Brent2: The XHTML transformation is in the todo list, but in the next 3 weeks I have few exams, so the project is frozen for a while :(

  41. Виталий says:

    возможно, ты прав
    я тут еще с одной проблемкой столкнулся
    использую вот этот плагин для фильтрации страниц в главном меню

    увы, твой-то про него не знает, выдает все секреты :) я решил проблему дополнительным запросом, формирующим AND-условие для твоего основного запроса:

    $ep_sql = “”;
    $result = mysql_query(“select `option_value` from `”.$t.”options` where `option_name`=’ep_exclude_pages’”);
    if ($data = mysql_fetch_assoc($result))
    $ep_sql = “AND `”.$t.”posts`.`ID` not in (“.$data['option_value'].”)”;

    но это хак под конкретный плагин, может есть какое-то более изящное решение? может стоит получать список постов не запросом, а через апи вордпресса?

  42. Excellent Plugin – dead easy to install and configure. Well done

  43. I think you need to change line 201 of ksm.php: Crated to Created.

  44. [...] gli articoli che saranno mostrati nella lista, poi li dispone automaticamente per categoria); karailievs-sitemap o Really Simple Sitemap e infine Inline PageList (per creare solo la lista dellepagine e [...]

  45. Traffic2mypage.com says:

    thank u so much

    tried two other sitemaps didn’t work

    thank u for yours

  46. I have sites with 10,000 plus posts, in one case one with over 50,000… I would like an option for multiple sitemaps, say in increments of 10,000. Google has a 50k limit, but that can be taxing on server load when it’s saved. I know this isn’t a common issue, but right now there is no wordpress solution w/ existing sitemap plugins.

  47. Is it possibile to have a future version of the plugin an option in order to index only the latest 10 articles ? (or something similar)

  48. can’t link to the xml file??? and ideas it’s in the top level of my blog but can’t work out what to put as the relative path… where does the blog homepage actually exist if I’m running a theme??

  49. Hi all.
    Sorry for the delay to answer your posts, but I was really busy at work and with some other projects.

    @Jeff: What you want is really unusual and really great feature for some future version of the plugin. Unfortunately it will have to wait some time, because I still have a lot to do (on this and other projects).

    @Matteo: Your request is even more unusual. After all the idea of the plugin is to allow Google to index all your pages, not only the new one.

    @arcd: If you have your blog in a (sub)domain’s root folder (like me) the path to your sitemap is ‘/sitemap.xml’
    If you have the blog in some folder the path is ‘/some-folder/sitemap.xml’.
    If you don’t want your paths to begin with ‘/’, I think you need to take into account your permalink structure.

    I hope this helps!

  50. Is this plugin pings Google to get the new sitemap.xml?

  51. @rzrarti: Yes, it does.

  52. thanks, it’s a good plugin :)

  53. Hello, i don’t think my answer is inusual. I was asking if a future version of your plugin can have an option to index only the latest 10 articles to be used for Google News. If a site is listed on google news you must have a second sitemap with a few articles, Google News doesn’t index more than this (if i remember right), you can receive an error under Google Webmaster Tool.

  54. Matteo, you are right.
    Today I’ve read little bit about the news sitemaps. It’s good idea to add this feature to the plugin.
    It goes straight into the todo-list .

  55. Thanks very much to accept this :)

  56. [...] per tutti i publishers le cui notizie e news finiscono sul celebre Google News. Per usufruire di Karailiev’s sitemap unico prerequisito è l’upload del file sitemap.xml in root (deve essere bianco) mentre [...]

  57. Hi there,

    today after updating, I got this error on google wbmasters:

    8 Date not valid
    Main Tag: url
    Rilevato il: 29/lug/2008

    I think you got error on generating the date format on line 8…

  58. Hi there,

    I use wordpress version 2.6. Will your plugin work with it, cause i still get a message: your sitemap doesn’t excist or is not writeble. I changed the properties of the xml file 666 and 755.



  59. @DaKink: there should be no problem with WP2.6.
    666 it the right permission for the XML-files.

  60. Hi there, thanks for this greart tool!

    I’ve to second mirco, current latest version from July 29th has a problem with wordpress 2.6.

    I tried it on a fresh install of wordpress 2.6 and the problem affects only the last updated day of the home, not of the articles.
    You can check it on mine live: http://guzman.braso.info/sitemap.xml

    The date gets some how printed in the way it should be processed by php date function, instead of actually processing it.

    Except for that little issue, great work you done!

    Kind Regards from Montevideo,

    Guzmán Brasó

  61. @Pavel: Все равно, если файл пустой или – нет. Его содержание будет перезаписано /уничтожено/.
    Сколько смотрю, у тебя, на http://ogamers.ru/sitemap.xml все OK.

    Я проблему решил тем, что поставил права на сайтмап.хмл 777.. после переправил их…
    но вот другой сай не хочет((

    а так плагин хороший нравится.. использую на 10 блогах его!)

  62. проблему решил))) при создании получился Sitemap.xml как я понял с большой буквы писать не следует.. при изменении на маленькую)) все заработало.. спс большое за ваш плагин)))))

  63. http://gopodebian.com/sitemap.xml
    гуголь ругается на дату.
    Неправильно введена дата
    Обнаружена неверная дата. Исправьте дату или ее формат перед повторной передачей.
    помогите решить проблему…. :(

  64. Родительский тег: url
    Тег: lastmod
    Значение: SunAMMSDE_AMMSD+0400Aug
    Дата последнего появления: 09.08.2008

  65. Thanks to everyone who reported the date problem.
    Unforunately at the moment I’m on vacation and have no PC to deal with the problem (I’m writing this from an Internet cafe and now I’ll go to the pub ;) ). So the bug will wait until the end of the week.
    Until then the people who have the problem can use the older version http://downloads.wordpress.org/plugin/karailievs-sitemap.0.6.zip

    Have a nice day/evening ;)

  66. heloo, thanks to your plugin, but why this sitemap not validate in http://www.validome.org/google/

    thar eror mesage is
    “required attribute “xmlns:xsi” not specified and required attribute “xsi:schemaLocation” not specified”

  67. @zee0803: hmmmm… I don’t know.
    It does not validate my sitemap too.
    But Google and Yahoo accept it.
    So there is no problem for me.
    Here is the protocol I’ve used for the plugin: https://www.google.com/webmasters/tools/docs/en/protocol.html and they say noting about required attribute “xmlns:xsi”
    I think there is nothing to worry about :)

  68. HOw can I put it on my sitemap page?

  69. Hello Paul!
    This sitemap is not for the users so it should not be added anywhere.
    It’s created for Google and other search engines.
    If you don’t have a Google Webmaster Tools account, I suggest to create one. There you can find all information you need about sitemaps.

  70. [...] plug-in interessante per il SEO è Karailievs sitemap, utile per creare le sitemap.xml di riferimento per il sito. La cosa interessante è che può [...]

  71. hi. i need ur help.please, help me.

    mydomain.com/wp-admin ( onyl wp-admin)

    internet server error…..

    what is problem ?

  72. versiyon : 2.6.2

  73. Hi Baron,
    I didn’t have time to test the plugin with WP 2.6.2
    I’ll do it tonight.
    If you want to deactivate some plugin, you can delete the plugin’s folder via FTP

  74. oke. i did deactivate.

    Problem : Publish writing and Edit writing (internet server error)

    I am not able to publish writing. ( linux-godaddy.com) .Wp 2.6.2


  75. @Baron: I’ve just tested the plugin with WP 2.6.2 and there was no problem.
    I don’t know why is this happening with you.
    Maybe some incompatibility with another plugin.

  76. oke, thanks u

  77. Hey Mr Karailiev, very nice plugin ! So much easer to install than the other sitemap plugins.

    A couple of things. It would be great if it could write an xml.gz file to save space.

    Also, I’d like to repeat the request someone else made further up. A way of automatically handling multiple sitemaps when the google limit of 50.000 posts is reached would be great.

  78. [...] solução veio com o Karailiev’s sitemap. Este plugin funciona como o anterior com um pouco menos de opções para configuração e, ao que [...]

  79. Brilliant plug in! Works like a charm. A must for every WP blog. If you’re thinking about doing foreign translations, I volunteer for the French one. Just e-mail me and let me know what I have to do!

  80. Hello Darloup!
    I’m glad you like the plugin.
    I’m interested in translation, but first I need some time for my other projects.
    I’m planning new release in a couple of weeks and after that I’ll contact you to discuss the translation.

  81. Hello there!

    As I’m using another WP plugin called Gengo for multi language support, karailiev sitemap plugin was building url’s which will be redirected to the new ones created by Gengo to specify language in the url.

    If anyone else have the same problem or want multi language support together with karailiev sitemap plugin, I’ve wrote an article where I explain what to change to make karailiev sitemap generate the right url’s.

    Article url: Using Gengo & karailievs-sitemap plugins for WordPress.

    Regards from Montevideo!


  82. Well, whenever you’re ready for a French translation, please let me know – I’ll gladly do it.

    BTW, have you ever thought of converting your WP program to an independant EXEcutable program which could be used to create a sitemap for any website – and not only a WP blog? I have other Websites (personal) and I’d love to be able to use a good sitemap generator from my PC.

    I know that they are many free sitemap generators on the market but, so far, all the ones I have tried suck (I have tried six).

    They’re full of mistakes: Some get their programming wrong, some use “0,5″ (instead of “0.5″) to determine my priority, some don’t even mention the correct change time…

    As I said, I have used 6 different sitemap generators (to generate a sitemap on my girlfriend’s web site: http://www.nellycantillo.com) and, each time, Google reported an error… Yours is the only one that Google accepted – but it’s limited to my WP blog.

    Right now, I’m using this on-line site: http://www.xml-sitemaps.com/ to generate sitemaps. They are error-free.

    But I’d much prefer generating the sitmaps from my own PC with a dedicated program…

    Take care,


  83. [...] Karailiev’s sitemap เวลาเข้าไป Google Webmastertools แล้วมักจะถูกเตือนเรื่อย ๆ ว่าเวบยังไม่มี sitemap นะถ้ามีเอามาใส่ด้วย เลยลองหามาใส่ดู [...]

  84. Thanks for the plugin. It works really well. Highly recommended.

  85. [...] 然後我又換了另一個外掛Karailiev’s sitemap,去Google的網站管理員工具登錄之後 [...]

  86. Nice plugin, simple and quick and straight to the point :)

    But I’d appreciate the possibility of excluding certain posts/pages.

    XML google sitemap had it, but as soon as I upgraded to 2.6.3 it stopped working. As I’m on a hosted server I cannot peek into logs to see what broke it.

    Oh well. I’ll just wait for you to get back to this page and despair at the many comments to moderate ;)

  87. Hello tcd,
    I’ve just tested it with WP 2.6.3 and had no problems.
    I’ll need more info to help you.

  88. Karailiev, apologies for the misunderstanding:

    YOUR plugin works.

    it is the OTHER plugin I used before (Google XML Sitemaps) that has stopped working :)

    Your plugin doesn’t exclude specific posts/pages from being listed in the sitemap (had to use robots.txt for that.)
    Furthermore, some validators tell me that the xml fire generated contains 2 errors in its xml syntax.

  89. [...] XML Sitemap – This is a raw XML sitemap. [...]

  90. @tcd: I’ll check why this error is reported, but the most important thing is that Google itself validates the sitemap without errors ;)

  91. Hi karailiev, :)
    I did other tests, with google itself… and, guess what?
    It’s the validator of the url above that is parsing incorrectly the xml file (btw, please remove the link to that validator…)

    Have a nice weekend :)

  92. Hi.
    10x for plugin! i use it on my blog http://italk.org.ua/ Check it out

  93. Plug in intalled smoothly! But not working like a charm. Can you help me?
    mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\xxxxx\wp-content\plugins\karailievs-sitemap\ksm.php on line 231

  94. Hello Lotony,
    Witch version of WP are you using?

  95. May I know is this plugin ready for WordPress 2.7 RC1?

  96. Hello Jenny!
    It’s not tested yet.
    But as far as I know it should work.

  97. XML Parsing Error: no element found
    Location: http://zulva.com/graphic/sitemap.xml
    Line Number 1, Column 1:
    why errorrr?????

  98. @idris: I have no idea. That’s not my plugin at the address you posted.

  99. sorry i change the sitemap cz i cant use your sitemap..
    iam beginner user WP..

    why HTML code showing..

    may i see the your sitemap result ?

  100. It’s normal to see the code.
    That’s not HTML. It’s XML and it’s formatted the way Google likes it :)

  101. Hi – I am using this plugin on WP 2.7 but keep getting the “invalid date” problem from Google. Any ideas how to get rid of it?

    This is the error
    Parent tag:
    Problem detected on: url
    Dec 16, 2008

  102. Hello Spree,
    I’m looking at your sitemap at the moment and can’t see a record with such date 0000-00-00T00:00:00Z.
    Are you sure Google has read your new sitemap? There is a button to resubmit a sitemap in the Webmaster Tools panel.

  103. Yes – I have reinstalled the plugin and rebuilt the sitemap numerous times but it still shows the error in the google panel even after resubmitting it. I cant see the error either on the actual sitemap. The error is still showing today. One other thing I have noticed is that initially the articles were showing up in searches literally within minutes but now it seems to be taking days although the articles are showing up in blog searches but not a web search. I don’t know whether this is related.

    I had this problem before upgrading to WP 2.7 so I don’t think the upgrade is responsible.

  104. @Spree: I really don’t know what the reason for the date error may be :(
    About the late indexing – I’ve noticed this too. Unfortunately we can’t do anything about it. Google is showing the page in the blog results, so it knows about it. That all (you and the plugin) can do. After that is Google’s game.

    @Everyone: I’ve just updated my blog to 2.7 and the plugin is working fine, so no fear :)

  105. [...] link yoksa karailievs sitemap kullanabilirsin. sade ve basit bir eklenti,

  106. [...] Karailiev’s sitemap เวลาเข้าไป Google Webmastertools แล้วมักจะถูกเตือนเรื่อย ๆ ว่าเวบยังไม่มี sitemap นะถ้ามีเอามาใส่ด้วย เลยลองหามาใส่ดู [...]

  107. [...] | Linux and Open Source Blog Contact Form 7 Contact Form 7 1.9

  108. [...] Karailiev’s sitemap [...]

  109. [...] Karailiev’s sitemap [...]

  110. Hello

    I am using your site map plug in. It works well. But I would like to change the frequency for home page. Current frequency for home page is weekly. How can I change it to daily?


    I requested you to kindly check the sitemap and give your advice at your earliest

    Thanks in advance.

  111. Hello sunil,
    I’m glad you like it.
    What you want is not possible for now.
    I’ll add this feature in the next version.

  112. [...] The Karailiev Sitemap plugin has been removed, although it worked perfectly [...]

  113. Lovedoodle says:

    Does the sitemap also ping yahoo, and MSN automatically?

  114. Hi – I’m trying to install your plugin, but can’t change my chmod to 666. I right clicking the sitemap.xml file in Filezilla, select file permissions, then type 666 in the numeric value box, then ok. It informs me that the directory listing is successful, but when i check that it is 666, it’s reverts back to 766 and you plugin does not work. Please help, spent the last 3 hours looking for help.

  115. Hello Jon,
    I don’t know why you can’t change the permissions to 766. Maybe you have to talk with your administrator about that.
    But I think you don’t need to do all this. If the permissions are 666 it should work fine.
    When you open Admin Panel -> Settings -> Sitemap do you see any error messages?

  116. @Lovedoodle: sorry your comment was marked as spam and I just saw it.
    In this version the plugin pings just Google.
    But once submitted to the search engines they check it from time to time even if they are not pinged.

  117. Hi Karailiev,

    It’s ‘Thank a Plugin Developer Day’ (http://wordpress.org/development/2009/01/thank-a-plugin-developer-day/) so I thought I’d drop you a thank-you note.

    We use your sitemap generator in pretty much every WP site we create — thanks for a great tool!

    Vancouver Island, Canada

  118. It says

    Warning: fopen(/home/disascom/public_html/./sitemap.xml) [function.fopen]: failed to open stream: Is a directory in /home/disascom/public_html/wp-content/plugins/karailievs-sitemap/ksm.php on line 84

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/disascom/public_html/wp-content/plugins/karailievs-sitemap/ksm.php on line 85

    Warning: fclose(): supplied argument is not a valid stream resource in /home/disascom/public_html/wp-content/plugins/karailievs-sitemap/ksm.php on line 86

    Warning: fopen(/home/disascom/public_html/./sitemap.xml) [function.fopen]: failed to open stream: Is a directory in /home/disascom/public_html/wp-content/plugins/karailievs-sitemap/ksm.php on line 84

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/disascom/public_html/wp-content/plugins/karailievs-sitemap/ksm.php on line 85

    Warning: fclose(): supplied argument is not a valid stream resource in /home/disascom/public_html/wp-content/plugins/karailievs-sitemap/ksm.php on line 86
    Error: there is a problem with sitemap.xml. It doesn’t exist or is not writable. For help see the plugin’s homepage.

    i’m checking with admin why i cant change them to 666

  119. Error: there is a problem with sitemap.xml. It doesn’t exist or is not writable. For help see the plugin’s homepage.

    it just says it. :(

  120. @rzrarti: is the file there?
    What is the permission?

  121. Hello Valentin. Your sitemap plugin is doing great job in Sulumits Retsambew SEO contest on the site http://www.sulumitsretsambew.org. I am curently holding first place among many good seo experts. Thanks for making this excellent plugin. If I take any place expect donation :D

  122. [...] Karailiev’s sitemap – создает sitemap фаил [...]

  123. Please can you tell us how to exclude a certain category from being listed in the google news sitemap?

  124. Hello Fabio,
    At this point excluding categories or posts isn’t possible.

  125. Thanks…it’s great plug in..i will try to my own website.:D

  126. hello,
    first of all thank you for the plugin. It works great in submitting my site URLs to Google. I found a problem however, that with this plugin activated, I can’t delete a post from inside the post editor. Whenever I tried to edit the post using the delete link located at the right of the Save/Publish button, the screen will shows me a blank white page. And when I tried to come back to the Manage Post page, the post is still there (not deleted). The strange thing is, I can delete the post from the post list using the checkbox and action button above the table with no problem. When I deactivate this plugin, I can detele the post from inside the post editor.

    I’m using WordPress 2.6.5 (can’t upgrade at least until year end, since my other writers doesn’t like the 2.7 layout) and Karailiev’s Sitemap Plugins version 0.7.1.

    Thank you.

  127. Hello bimz,
    I’ll see what causes the problem.
    Until then you’ll have to go around it when you have to delete a post.

  128. Для главной странички тоже хорошо бы выставить возможность установления приоритета. Это имеет значение для поисковой оптимизации. Поисковики не любят тег more и не всегда индексируют страницы, за ним спрятанные. Если для главной страницы выставлять более низкий приоритет, чем для записей, то, по-моему разумению, ситуация должна исправиться.

  129. I think I found a bug but I may be wrong. Anyway disabling the generation of the “General sitemap” either the generation of the “News sitemap” seems to be disabled while it won’t be updated on the insert/edit of any article but it was done by the “Save & Rebuilt” button only.

    Thats why i edited the code line 42 of ksm.php


    if ($ksm_active) {


    if ($ksm_active || $ksm_news_active) {

    Now it works fine.


  130. hey I get the same error message as someone above mentioned…

    Error: there is a problem with sitemap.xml. It doesn’t exist or is not writable. For help see the plugin’s homepage.
    Error: there is a problem with sitemap-news.xml. It doesn’t exist or is not writable. For help see the plugin’s homepage.

    when you go through to page it has this message

    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


    XML document must have a top level element. Error processing resource

    The pages are definitely there and the permissions for both are 666… any ideas what is causing this?

    Your help is much appreciated,


  131. Hi – Does this sitemap plugin work with the Domain Mapping plugin for WordPress MU? I tried using Arne’s Google XML Sitemaps plugin, and am getting a path issue with the site map.

    I basically have WPMU installed at blogs.domain.com. I created a few blogs as subdomains, like test1.blogs.domain.com, test2.blogs.domain.com etc., and using Donncha’s Domain Mapping plugin, I was able to map test1.domain.com to test1.blogs.domain.com, test2.domain.com to test2.blogs.domain.com, etc.

    However, when I create the sitemap with Arne’s plugin, I only get the sitemap working for the main blog (blogs.domain.com). For the other blogs, the links are still referring to test1.blogs.domain.com, NOT test1.domain.com.

    Does this make sense?

  132. As I said if I win in Sulumits Retsambew I will make donations to this great plugin.
    Expect it in a day or two.

    One more time thanks for making perfect sitemap plugin :D

  133. Thanks for the detail admins

  134. Great plugin, just have 1 request/bug report. Even though there is an option to rebuild on Attachment changes, the sitempa does not include any of the attachment page URLs. I have not been able to find any WP sitemap generator that includes attachment URLs. Yours would be the only plugin that has that capability.

  135. Just want to praise your efforts, and say keep on..regards

  136. [...] realizzarla ho trovato un ottimo plugin wordpress di Valentin Karailiev – http://www.karailiev.net/karailievs-sitemap/ – che mi ha permesso in modo molto semplice e veloce di realizzarla (il plugin è molto [...]

  137. Hi – and thank for your great plugin. Can you tell me how i can exclude certain pages from the sitemap. I need to exclude contact us, privacy and disclaimer pages on my wp blog. Is this possible? If this is not possible – could I run another sitemap plugin to build a “general sitemap” alongside your plugin which i would just use for the “news sitemap”. Would this be an ok thing to do or could it affect the seo/pr of my site to do that? Thanks

  138. Congratulation, your great plugin is used by Helas, the winner of sulumits retsambew seo contest.

  139. Hi all!
    Thank you for your posts.
    the last few moths I had no time to continue the development of the plugin, but now I’m back ;)

    @Daniele Iacono: You’re right. It’ll be fixed in next release.

    @Warren: The only case you can see these messages is if the file/folder is not writeble. So the only thing I can advice you is to check again.

    @Ash: I’ve never tested this. I’ll be grateful if you test it and post results/ideas here.

    @Hellas: Congatz about the winning! I’m glad to think my plugin helped you ;)

    @Art Dude: Now when I’m working on the new release. I’ll see what it takes to add the attachments.

    @Brett: I don’t know why would you like to exclude pages. The idea ot fhe plugin is to make Google aware of all your pages. However I’m considering such functioanllity in the new release.

  140. Hello
    Error: there is a problem with sitemap.xml my theme not support

  141. @Rohfun: your sitemap file is empty.
    To generate the first sitemap you should click the Save & rebuild button on the settings page.
    You should also check the write permissions of the file. Set it to 666 (read and write to everyone).



  143. Hi I installed the plugin, and I am getting errors when trying to validate the feed.

    The URL does not appear to reference a valid XML file. We encountered the following problem: Unknown feed format encountered (The root element is [Element: ])

  144. Please provide link to your sitemap and information about WP version.

  145. Hello,
    I tried a lot of plugins in order to create a valid sitemap.
    I get the same error when I submit the sitemap.xml to google.
    The error is :
    Sitemap is HTML
    Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.

    Tried to modify your script so…

    Modify the URLSET:

    Eliminate time from …

    To ensure that my sitemap is reachable, I’ve tried to load the file from many online test sites (no problem, is reachable without problems)

    But… nothing to do!
    Google says: Sitemap is HTML, bla bla bla…

    Any suggestions?

    Thanks in advance.

  146. Hello otto,
    Can you please provide a link to your sitemap and WP version.
    You can do it here or via the contact form http://blog.karailiev.net/contacts/

  147. Thanks for your fast answer!
    I’m using WordPress 2.9.1
    The link of the sitemap is http://www.mediaverso.com/sitemap.xml

    I have tried to play around .htaccess, but nothing is changed.
    Initially the blog was without WWW, and Google will be redirected [301], because the bot ask the sitemap using the complete URL (www.etc). Ok, let’s changing the damn .htaccess, now redirect mediaverso.com to http://www.mediaverso.com, as asking the robot of google.
    Now is ok (checked with http://www.xml-sitemaps.com), but I get again the redcross and the same error: your sitemap is HTML.

  148. I have used the contact form, because I get “duplicate comment”… today I’m unlucky! ehehe
    Answer here, if you can, or send me a email.
    Thanks a lot.

  149. wait a sec… I fetched the sitemap.xml with the webmaster tool…
    First of all, I have changed the DNS yesterday, so google is pointing to the oldest one, and get:

    HTTP/1.1 301 Moved Permanently
    Date: Sun, 31 Jan 2010 16:56:57 GMT
    Server: Apache
    Location: http://err.000webhost.com/
    Content-Length: 234
    Connection: close
    Content-Type: text/html; charset=iso-8859-1

    So, I need to wait to be sure that the DNS table is complete.
    Maybe this is the reason of the trouble.
    I try again tomorrow at this point, when the DNS table is complete.
    If ok, I restore the original code of the plugin and try again.
    Back tomorrow for more update.


  150. DNS propagation is done, the plugin is working very fine!
    It seems that Google keep in cache also the dns addresses…
    Anyway, hope this help peoples that have the same trouble.
    Thanks ;)

  151. thanks for share, its work well

  152. Hello,

    Thank you very much for creating the Plugin. After being frustrated to generate an xml sitemap for a long time, your Plugin finally worked and saved me.

    However, the trouble is Google Webmaster Tool shows “Error: The last attempt at downloading the Sitemap failed. The details below are representative of the last successful download.” But there is no detail and if I click “View Sitemap” it brings me to http://www.uprofish.com/wp/sitemap.xml, which is the valid location of my sitemap.

    Couldy you please help?

  153. Hello,
    I tried to submit the sitemap generated by the plug-in to Google Webmaster, but it says “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.” I tried resubmission twice now, but still get the same error. Could you please help?

    The sitemap is at http://www.uprofish.com/wp/sitemap.xml

  154. Hello,
    Thank you for the nice plug in. The sitemap is created without no problem, but when I submitted to Google Webmaster Tools, it gave me error:

    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.
    Problem detected on: Feb 14, 2010

    You can see the sitemap at http://www.uprofish.com/wp/sitemap.xml.
    Could you please help?

    Thank you.

  155. the problem solved itself. i think it was google error. thanks for the plug in.

  156. Valentin,

    I keep hearing about this plugin from other Blog owners and how great a job it does at creating an xml sitemap. They tell me that it is Better than the popular XML Sitemap plugin that is dominant today.

    I even installed it on a blog, and yes, it makes a very good sitemap. I love the news map setting. So far I’ve got nothing but praise… However, I cannot compare it to the above-mentioned plugin, nor use it on my main blogs, because it does not attempt to do many things that the XML sitemap plugin does, such as ping yahoo, bing, and ask, or even allow adding Archives to the sitemap.

    In fact, the only place you have described what this plugin does us up at the very first sentence of this page:“This plugin adds a XML sitemap to your blog. It’s used to show all your pages and posts to the search engines like Google, Yahoo and MSN.”

    I read through the comments and you later added that it would ping Google each time it updates the sitemap. It really would help if you gave more description than one sentence!

    Anyway, it would seem that it was made to only do 3/4ths of what the XML Sitemap plugin does… And is not trying to be the best Sitemap Plugin for wordpress blog owners.

    Is this correct? Or is there a reason that you don’t think wordpress blogs should ping the other search engines, nor include archive pages.

    I do not mean to criticize, you have made something more than I can make. I just am trying to figure out the best way to use it. Thanks in advance.

  157. I installed the plugin but for some reason it’s not working. I’m getting the error message similar to a couple of those mentioned above but I know a few tricks that I’ll try right away & hopefully it works. cheers!

  158. [...] Karailiev’s sitemap [...]

  159. [...] Les liens : le plugin, le site. [...]

  160. Peter Reason says:

    Good, sensible xml sitemap and able to change the page priorities – well done.

    I am using one WordPress to run a desktop website and a mobile site.
    Basically, I am looking for the sitemap.xml file to include all of site EXCEPT /mobile/
    and the sitemap-mobile.xml file to ONLY include /mobile/

    I don’t know if you could adapt your plugin to do that and how much you would charge to do the changes?

    From Peter

  161. Hi there,

    great plugin, now I understand why everybody is saying this is better than XML sitemap plugin. I have a little tip for you. There is a huge community that does a wordpress multilingual plugin – > http://www.wpml.org, they are looking desperately for a sitemap plugin that works with wpml. If you could think about integrating this function into your plugin, it would skyrocket the users of your plugin immediately.



  162. Jayprakash says:

    I want to do ” save and rebuild ” of Karailiev’s sitemap using my PHP file from outside the WP Admin Panel is it possible ?
    if yes then wt i have to do for this ?

  163. It’s great to find a XML sitemap plugin that does custom priorities for pages – thanks for spending time on writing it.
    However I found I couple of short coming that could do with improvement:
    – There’s no ability to add extra pages outside of WordPress (I have a few extra HTML pages linked into our site) and it won’t see the WordPress pages I have that use the “Page Links To” plugin to link to the extrernal pages.
    – You can’t set a custom page priority of 1 (0.9 is the max).
    I hope you can do something about this some at point in the future. For now I’ll probably add the code for pages into the plugin code so they get added on the end.

  164. [...] Karailiev’s sitemap 1.0 » Valentin Karailiev (url) Generates sitemap for spiders. [...]

  165. I was try it, but there are error like this:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 854404 bytes) in /home/jarlokco/public_html/wp-content/plugins/karailievs-sitemap/ksm.php on line 258

    can you tell me why? and how to resolve this problem?Thankyou

  166. [...] Create a file named sitemap.xml in your blog folder. The file must be writable for the web server. See more instructions on plugin’s homepage [...]

  167. [...] sono allora deciso a provare un nuovo plugin per questo stesso compito. Karailiev's Sitemap ha molte meno personalizzazioni ma invia comunque automaticamente le sitemap a Google, Yahoo e [...]

  168. your plugin running well at my site,,
    and solve my sitemap eror that i create with google sitemap XML plugin before,,
    Thank’s So much..

  169. [...] Karailiev’s sitemap [...]

  170. thanks for the plugin.
    it can run well, but still not easy to make it work, because still manual.
    but I can and can use it.

    this below my sitemap xml

  171. wow its great simple plugin, i like you have plugin thanks you very much

  1. Karailiev’s sitemap…

    This plugin adds a XML sitemap to your blog. It’s used to show all your pages and posts to the search engines like Google, Yahoo and MSN….

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word