Arne Brachhold

Google Sitemap Generator v2 (BETA)

Filed under: Sitemaps — arne on June 5, 2005

I had a little bit time this morning so I improved my Google Sitemaps Generator…

Features:

  • WordPress Plugin Support (just copy it in your plugin directory and activate it)
  • Administration UI (Customize setting like change frequency, page priorities and automatic priority calculation from your WordPress Admin Center)
  • Includes Homepage, Posts, Static Pages, Categories and Archives
  • Creates a static xml file called sitemap.xml in your blog directory
  • Gets automatic rebuilt if you edit/write/publish a post
  • Calculates post priority depending on the number of comments

Note: This new version is still beta and I’m still at testing. You can try it out and report any errors/mistakes/suggest to my email. If you can, test it under an other copy/backup of you blog… It’s still beta and may have bugs!!

Installation:
Download the zip Archive and extract the sitemap.php and in your wp-content/plugins directory. Then look in your admin page under Plugins and activate it. Now you can click on Options -> Sitemap and configure your settings. Update or write a post to start the first sitemap generation.

Note: I’m not a WordPress expert and this is my first plugin. I read The Plugin API and Writing a Plugin at the WordPress pages. If you are more familiar with WordPress plugins and see something strange/not recommended please tell me! Also the registered actions (add_action) which start sitemap generation may be redundant.

Update: I included a Manual Rebuild button in the options page so you don’t need to edit a post to start the generation at the first time. Beta Testers are welcome :)

9 Comment(s)

Comment by Andrew

Posted on June 5, 2005

Nicely done, this works great. Thanks!

Comment by Nicki Brøchner

Posted on June 5, 2005

Hi

Great plugin. I haven found any problems yet ;D - But you need to remind people that thay need to create the sidemap.xml manualy ;D

.Nicki

Comment by arne

Posted on June 5, 2005

Hi Nicki,

thanks for your comment. I will release a new version shortly which will fix this and other problems :)

Regards,

Arne

Comment by Karl Bedingfield

Posted on June 5, 2005

Hi there,

All I get in my xml file is this http://www.elyonline.co.uk/sitemap.xml

Do I have to manually enter anything in the XML file?

Thanks, great plug-in idea :)

Comment by arne

Posted on June 5, 2005

Hi Karl,

try the new version at http://www.arnebrachhold.de/2005/06/05/google-sitemaps-generator-v2-final and click again on "Rebuild Sitemap". If it still doesn’t work check if there are writing rights in your blog directory.

Please send me a mail if this doesn’t help and i will have a look on it.

Regards,

arne

Comment by shawn

Posted on June 8, 2005

When running the updated wp-mail.php script from http://www.economysizegeek.com/?p=271 I always get this error at the end:
Fatal error: Call to undefined function: get_home_path() in /…./…./public_html/blog/wp-content/plugins/sitemap.php on line 402

Comment by Dean

Posted on June 14, 2005

I am getting the exact same error as Shawn.

Comment by Rolf

Posted on October 6, 2005

Hello, (newbie here) :(

I need help for a install problem..

I use wp V1.5.1.3 - I nstalled the sitemap generator file downloaded from this site final v2

When I hit the rebuild sitemap I get the following errors after the rebuild… I sure don’t know where to go with that darn it? - looked so easy on the video for install:

Could not write into /home/liquid/public_html/wordpress/sitemap.xml
Could not write into /home/liquid/public_html/wordpress/sitemap.xml.gz

Rolf - thank you all for sure

Comment by arne

Posted on October 6, 2005

Hi Rolf,

if you get permission errors make sure that the script has writing rights in your blog directory. Try to create the sitemap.xml resp. sitemap.xml.gz manually, upload them with a ftp program and set the rights with CHMOD to 777. Then restart sitemap generation on the administration page. A good tutorial for changing file permissions can be found on the WordPress Codex.

Regards,

Arne

7 Trackbacks

Sorry, the comment form is closed at this time.