Sitemap
Sitemap is an extremely simple plugin that generates a Google XML sitemap to be submitted to Google Webmasters. Other search engine now accept sitemaps like the Google one.
Sitemap is born from the tutorial on this site on how to write a WordPress plugin, so its code is well explaned in the tutorial and can be a base to customize the plugin for specific functionalities.
Sitemap cannot be considered a replacement of other and most famous sitemao generators.
Download
Sitemap has been submitted to the WordPress Plugin Directory, waiting the approval you can download it here: Sitemap (936)
Usage and configuration
When active the plugin intercept the call
http://www.yourblog.com/sitemap.xml
and creates on the fly the sitemap.
Pay attention to not have a sitemap.xml real file on your web space!
On configuration can be set the number of URL to add to the map (they will be choosed givin priority to the last updated).
Integration with other plugin
On each sitemap URL entry generation, Sitemap calls the WordPress action “sitemap_added” that can be intercepted by other plugin to echo other sitemap infos. The call pass as parameter and associative array with these keys:
- id – the post or page id
- loc – the url
- changefreq – the change frequency for thies entry (daily, monthly, …)
- priority – the entry priority
- lastmod – last modification date in sitemap format: yyyy-mm-dd
To enable this integration there is a checkbox in the options panel.
