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.
Installation
- Download the zip file (latest version | older versions).
- Unzip it and copy the folder named karailievs-sitemap into <blog_root>/wp-content/plugins folder.
- In the administrator’s panel go to Plugins, find the plugin in the list and click activate.
- 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.
- 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:- Login to your account
- Type cd /path/to/your/blog/
- Type touch sitemap.xml
- 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 - Logout
If you have some problems doing this, contact your hosting support. Explain them what you need and they may be very helpful.
- 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.
Settings
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.
Licensing
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.
Support
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.

Entries (RSS)
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!
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
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?
regards
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.
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
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.
Hello, is it possible to give you trough email plugin list and if you need, dedicated server specs ? Thanks
hi. Thanks for plugin
perfect.
best regards
baron
works great..thank you..does it ping google?
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 ;))
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.
It looks like you are doing everything right.
What happens when you post new article or page?
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?
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.
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
Yes.
You can see it at http://www.nujusan.com/sitemap.xml
There is new version released. It can change the sitemap’s location and it pings Google.
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.
Rene
Thank you alot Валентин !!
.:.
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?
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!
@Bodhipaksa and EC Akes: this is because you are using PHP4.
I’ll release new version today compatible with PHP4&5
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
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
Is this will send ping to google also that sitemap now updated.
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.
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?
@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.
Добрый день выдает следующую ошибку - файл sitemap.xml не существует, и плагин не может его создать.
Вопрос.. файл sitemap.xml нужно создавать обсолютно пустым? или в него нужно что то вставлять?
Thanks dude , it work perfect.
@Pavel: Все равно, если файл пустой или - нет. Его содержание будет перезаписано /уничтожено/.
Сколько смотрю, у тебя, на http://ogamers.ru/sitemap.xml все OK.
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.
Robert
-
-
-
-
-
http://www.domain.com/
2008-05-18
weekly
1.0
-
http://www.domain.com/contact-us/
2008-05-18
weekly
0.3
-
http://www.domain.com/uncategorized/hello-world/
2008-05-18
weekly
0.3
-
http://www.domain.com/category/uncategorized/
weekly
0.1
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.
[...] 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 [...]
[...] Kariliev’s Sitemap - Generates a dynamic sitemap file for bots. [...]
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
http://www.nujusan.com
Валентин, спасибо за плагин - простой, удобный и делает ровно то что надо.
Предложение: добавь возможность выводить в сайтмап сначала страницы, потом - посты. Или наоборот. Или как сейчас. Три варианта. Мне вот нужно было страницы вперед пустить, пришлось запрос подправить малость.
@Виталий: В следующую версию можно ето сделано, но думаю что изчищие программ не принемают под внимане етово порядка, а стойность priority важнейшая.
P.S. я рад, что плагин тебе нравится
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.
Thanks!
@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
возможно, ты прав
я тут еще с одной проблемкой столкнулся
использую вот этот плагин для фильтрации страниц в главном меню
http://wordpress.org/extend/plugins/exclude-pages/
увы, твой-то про него не знает, выдает все секреты
я решил проблему дополнительным запросом, формирующим 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'].”)”;
но это хак под конкретный плагин, может есть какое-то более изящное решение? может стоит получать список постов не запросом, а через апи вордпресса?
Excellent Plugin - dead easy to install and configure. Well done
I think you need to change line 201 of ksm.php: Crated to Created.
[...] 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 [...]
thank u so much
tried two other sitemaps didn’t work
thank u for yours
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.
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)
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??
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!
Is this plugin pings Google to get the new sitemap.xml?
@rzrarti: Yes, it does.
thanks, it’s a good plugin
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.
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 .
Thanks very much to accept this
[...] 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 [...]
Hi there,
today after updating, I got this error on google wbmasters:
8 Date not valid
Main Tag: url
Tag:lastmod
Valore:TuePMCESTE_PMCEST+0200Jul
Rilevato il: 29/lug/2008
I think you got error on generating the date format on line 8…
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.
Greetz,
DaKink
@DaKink: there should be no problem with WP2.6.
666 it the right permission for the XML-files.
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ó
@Pavel: Все равно, если файл пустой или - нет. Его содержание будет перезаписано /уничтожено/.
Сколько смотрю, у тебя, на http://ogamers.ru/sitemap.xml все OK.
Я проблему решил тем, что поставил права на сайтмап.хмл 777.. после переправил их…
но вот другой сай не хочет((
а так плагин хороший нравится.. использую на 10 блогах его!)
проблему решил))) при создании получился Sitemap.xml как я понял с большой буквы писать не следует.. при изменении на маленькую)) все заработало.. спс большое за ваш плагин)))))
http://gopodebian.com/sitemap.xml
гуголь ругается на дату.
Неправильно введена дата
Обнаружена неверная дата. Исправьте дату или ее формат перед повторной передачей.
FriPMMSDE_PMMSD+0400Aug
помогите решить проблему….
Родительский тег: url
Тег: lastmod
Значение: SunAMMSDE_AMMSD+0400Aug
Дата последнего появления: 09.08.2008
Thanks to everyone who reported the date problem.
). So the bug will wait until the end of the week.
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
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
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”
@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
HOw can I put it on my sitemap page?
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.
https://www.google.com/webmasters/tools/dashboard
[...] plug-in interessante per il SEO è Karailievs sitemap, utile per creare le sitemap.xml di riferimento per il sito. La cosa interessante è che può [...]
hi. i need ur help.please, help me.
mydomain.com/wp-admin ( onyl wp-admin)
internet server error…..
what is problem ?
versiyon : 2.6.2
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
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
Thanks
@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.
oke, thanks u
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.
[...] 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 [...]
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!
Cheers!
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.
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!
Guzmán
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,
Henry