XML Sitemap & Google News feeds - Version 2.1

Version Description

  • bugfix: lastmod timezone offset displayed wrong (extra space and missing double-colon)
Download this release

Release Info

Developer RavanH
Plugin Icon 128x128 XML Sitemap & Google News feeds
Version 2.1
Comparing to
See all releases

Code changes from version 2.0 to 2.1

Files changed (3) hide show
  1. readme.txt +33 -6
  2. template.php +4 -4
  3. xml-sitemap.php +1 -1
readme.txt CHANGED
@@ -4,17 +4,20 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravan
4
  Tags: xml sitemap, sitemap, google sitemap, yahoo sitemap, msn sitemap, ask sitemap, search engine, feed
5
  Requires at least: 2.5
6
  Tested up to: 2.8
7
- Stable tag: 2.0
8
 
9
  Creates a feed that complies to the XML Sitemap protocol ready to be submitted to Google, Yahoo, MSN, Ask.com and others.
10
 
11
  == Description ==
12
 
13
- This plugin dynamically creates an XML feed that complies to the XML Sitemap protocol. There are no options to be set and the feed becomes instantly available after activation on yourblogurl.tld/sitemap.xml and yourblogurl.tld/feed/sitemap ready to be submitted to search engines like Google, Yahoo, MSN, Ask.com and others. An entry `Sitemap: http:// yourblogurl.tld/sitemap.xml` is added to the (by WordPress dynamically created) robots.txt on yourblogurl.tld/robots.txt to tell search engines where to find your XML Sitemap.
14
 
15
- The main advantages of this approach are **simplicity** (no need to change file or folder permissions or move files) and the fact that this method works out-of-the-box on **shared codebase / multi-blog setups** like [WordPress MU](http://mu.wordpress.org/), [WP_OneInstall](http://wordpress.org/extend/plugins/wp-oneinstall/), [WP Hive](http://wordpress.org/extend/plugins/wp-hive/) and others.
16
 
17
- It was based on the plugin Standard XML Sitemap Generator by Patrick Chia but requires no modifications to file locations. Some other small improvements and a bugfix were done in the first version.
 
 
 
18
 
19
  = Limitations =
20
 
@@ -25,13 +28,17 @@ It was based on the plugin Standard XML Sitemap Generator by Patrick Chia but re
25
  = Translations =
26
 
27
  There is nothing to translate. The sitemap protocol is international, there is no options page nor any front-end output. Nothing to see here, please move along ;)
 
 
 
 
28
 
29
  == Installation ==
30
 
31
  = Wordpress =
32
 
33
  Just use that slick installation and auto update feature on your Pugins page
34
- - OR -
35
  follow these simple steps:
36
 
37
  1. Download archive and unpack.
@@ -79,10 +86,30 @@ You may edit the XML output in xml-sitemap-feed/template.php but be carefull not
79
 
80
  = Do I need to change my robots.txt? =
81
 
82
- No. Your sitemap url will be automatically added to your dynamic robots.txt when plugin actived. Unless you use a static robots.txt file in your website root. In that case you areadvised to open it in a text editor and add a line like `Sitemap: http:// yourblogurl.tld/sitemap.xml` (adapt to your site url).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
  == Changelog ==
85
 
 
 
 
86
  = 2.0 =
87
  * priority calculation based on comments and age
88
  * changefreq based on comments
4
  Tags: xml sitemap, sitemap, google sitemap, yahoo sitemap, msn sitemap, ask sitemap, search engine, feed
5
  Requires at least: 2.5
6
  Tested up to: 2.8
7
+ Stable tag: 2.1
8
 
9
  Creates a feed that complies to the XML Sitemap protocol ready to be submitted to Google, Yahoo, MSN, Ask.com and others.
10
 
11
  == Description ==
12
 
13
+ This plugin dynamically creates an XML feed that complies to the XML Sitemap protocol. There are no options to be set and the feed becomes instantly available after activation on yourblogurl.tld/sitemap.xml and yourblogurl.tld/feed/sitemap ready to be submitted to search engines like Google, Yahoo, MSN, Ask.com and others.
14
 
15
+ An entry `Sitemap: http://yourblogurl.tld/sitemap.xml` is added to the (by WordPress dynamically created) robots.txt on yourblogurl.tld/robots.txt to tell search engines where to find your XML Sitemap.
16
 
17
+ = Advantages =
18
+
19
+ * The main advantage of this plugin over other XML Sitemap plugins is **simplicity**. No need to change file or folder permissions or move files. In fact, no options at all!
20
+ * Works out-of-the-box on **shared codebase / multi-blog setups** like [WordPress MU](http://mu.wordpress.org/), [WP_OneInstall](http://wordpress.org/extend/plugins/wp-oneinstall/), [WP Hive](http://wordpress.org/extend/plugins/wp-hive/) and others.
21
 
22
  = Limitations =
23
 
28
  = Translations =
29
 
30
  There is nothing to translate. The sitemap protocol is international, there is no options page nor any front-end output. Nothing to see here, please move along ;)
31
+
32
+ = Credits =
33
+ XML Sitemap Feed is based on the plugin Standard XML Sitemap Generator (discontinued?) by Patrick Chia. Many thanks!
34
+
35
 
36
  == Installation ==
37
 
38
  = Wordpress =
39
 
40
  Just use that slick installation and auto update feature on your Pugins page
41
+ ... OR ...
42
  follow these simple steps:
43
 
44
  1. Download archive and unpack.
86
 
87
  = Do I need to change my robots.txt? =
88
 
89
+ No. Your sitemap url will be automatically added to your dynamic robots.txt when plugin actived. Unless you use a static robots.txt file in your website root. In that case you areadvised to open it in a text editor and add a line like `Sitemap: http:// yourblogurl.tld/sitemap.xml` (adapt to your site url).
90
+
91
+ = I get a 404 page instead of robots.txt! =
92
+
93
+ The plugin Event Calendar (at least v.3.2.beta2) is known to break the WordPress internal robots.txt generation. Other plugins might also cuase this. Deactivate them all and see if you get a basic robots.txt file showing:
94
+ `
95
+ User-agent: *
96
+ Disallow:
97
+ `
98
+ Reactivate your plugins one by one to find out which one is causing the problem. Then report the bug to the plugin developer.
99
+ ... OR ...
100
+ Manually upload your own robots.txt file to your website root containing at least:
101
+ `
102
+ Sitemap: http://beauxdupeyron.fr/sitemap.xml
103
+
104
+ User-agent: *
105
+ Disallow:
106
+ `
107
 
108
  == Changelog ==
109
 
110
+ = 2.1 =
111
+ * bugfix: lastmod timezone offset displayed wrong (extra space and missing double-colon)
112
+
113
  = 2.0 =
114
  * priority calculation based on comments and age
115
  * changefreq based on comments
template.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /**
3
- * XML Sitemap Feed Template 2.0
4
  **/
5
 
6
  if (!empty($_SERVER['SCRIPT_FILENAME']) && 'feed-sitemap.php' == basename($_SERVER['SCRIPT_FILENAME']))
@@ -19,13 +19,13 @@ $frontpage_priority = 1.0;
19
 
20
  ?>
21
  <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
22
- <!-- generator="XML Sitemap Feed WordPress plugin/1.0" -->
23
  <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24
  xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
25
  xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
26
  <url>
27
  <loc><?php bloginfo_rss('url') ?></loc>
28
- <lastmod><?php echo mysql2date('Y-m-d\TH:i:s +0000', $lastpostmodified, false); ?></lastmod>
29
  <changefreq>daily</changefreq>
30
  <priority>1.0</priority>
31
  </url>
@@ -51,7 +51,7 @@ if ($post_ids) {
51
  ?>
52
  <url>
53
  <loc><?php the_permalink_rss() ?></loc>
54
- <lastmod><?php echo mysql2date('Y-m-d\TH:i:s +0000', $post_modified_time, false) ?></lastmod>
55
  <?php if($post->post_type == "page") { ?>
56
  <changefreq>monthly</changefreq>
57
  <priority>0.5</priority>
1
  <?php
2
  /**
3
+ * XML Sitemap Feed Template 2.1
4
  **/
5
 
6
  if (!empty($_SERVER['SCRIPT_FILENAME']) && 'feed-sitemap.php' == basename($_SERVER['SCRIPT_FILENAME']))
19
 
20
  ?>
21
  <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
22
+ <!-- generator="XML Sitemap Feed WordPress plugin/2.1" -->
23
  <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24
  xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
25
  xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
26
  <url>
27
  <loc><?php bloginfo_rss('url') ?></loc>
28
+ <lastmod><?php echo mysql2date('Y-m-d\TH:i:s+00:00', $lastpostmodified, false); ?></lastmod>
29
  <changefreq>daily</changefreq>
30
  <priority>1.0</priority>
31
  </url>
51
  ?>
52
  <url>
53
  <loc><?php the_permalink_rss() ?></loc>
54
+ <lastmod><?php echo mysql2date('Y-m-d\TH:i:s+00:00', $post_modified_time, false) ?></lastmod>
55
  <?php if($post->post_type == "page") { ?>
56
  <changefreq>monthly</changefreq>
57
  <priority>0.5</priority>
xml-sitemap.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: XML Sitemap Feed
4
  Plugin URI: http://4visions.nl/en/index.php?section=57
5
  Description: Creates a dynamic XML feed that complies to the XML Sitemap protocol ready be submitted to Google, Yahoo, MSN, Ask.com and others. Based on the Standard XML Sitemap Generator by Patrick Chia.
6
- Version: 2.0
7
  Author: RavanH
8
  Author URI: http://4visions.nl/
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=XML%20Sitemap%20Feed&item_number=2%2e6%2e2%2e9&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8
3
  Plugin Name: XML Sitemap Feed
4
  Plugin URI: http://4visions.nl/en/index.php?section=57
5
  Description: Creates a dynamic XML feed that complies to the XML Sitemap protocol ready be submitted to Google, Yahoo, MSN, Ask.com and others. Based on the Standard XML Sitemap Generator by Patrick Chia.
6
+ Version: 2.1
7
  Author: RavanH
8
  Author URI: http://4visions.nl/
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=XML%20Sitemap%20Feed&item_number=2%2e6%2e2%2e9&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8