<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: WordPress Sitemap Generator for Google News</title>
	<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/</link>
	<description>Ham radio, computer security, soapbox</description>
	<pubDate>Thu, 04 Dec 2008 03:06:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: Chris Jinks</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1488</link>
		<pubDate>Mon, 04 Aug 2008 12:45:10 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1488</guid>
					<description>Hi David,

I used your original concept and adapted the code slightly to produce a Wordpress plugin. Below is a link:

http://wordpress.org/extend/plugins/google-news-sitemap-generator/

This can now be installed like a normal Wordpress plugin and automatically updates when you save, publish and delete a post. 

I hope this will be useful for someone.</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>I used your original concept and adapted the code slightly to produce a Wordpress plugin. Below is a link:</p>
<p><a href='http://wordpress.org/extend/plugins/google-news-sitemap-generator/' rel='nofollow'>http://wordpress.org/extend/plugins/google-news-sitemap-generator/</a></p>
<p>This can now be installed like a normal Wordpress plugin and automatically updates when you save, publish and delete a post. </p>
<p>I hope this will be useful for someone.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Slevi</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1485</link>
		<pubDate>Sun, 13 Jul 2008 17:40:51 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1485</guid>
					<description>Great script, works like a charm :).

@McCain: use 

AND post_date &amp;#62; SUBDATE(NOW(), 3)

within the script, that should filter out to 3 days back.</description>
		<content:encoded><![CDATA[<p>Great script, works like a charm <img src='http://www.kb3kai.com/david_stansbury/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>@McCain: use </p>
<p>AND post_date &gt; SUBDATE(NOW(), 3)</p>
<p>within the script, that should filter out to 3 days back.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Fabio</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1483</link>
		<pubDate>Fri, 27 Jun 2008 07:00:44 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1483</guid>
					<description>Thank you for this plugin , wonderfull ;-)</description>
		<content:encoded><![CDATA[<p>Thank you for this plugin , wonderfull <img src='http://www.kb3kai.com/david_stansbury/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: McCain</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1482</link>
		<pubDate>Tue, 17 Jun 2008 23:47:00 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1482</guid>
					<description>Hi David,
This is wonderfully useful.  We have two blogs just admitted to Google News.  Google News only take articles created in the last 3 days.  Anything older creates a zillion errors in Google Webmaster Tools.  So I'm wondering if you can modify it to only generate the last 3 days, a change for which I would gladly make a donation.</description>
		<content:encoded><![CDATA[<p>Hi David,<br />
This is wonderfully useful.  We have two blogs just admitted to Google News.  Google News only take articles created in the last 3 days.  Anything older creates a zillion errors in Google Webmaster Tools.  So I&#8217;m wondering if you can modify it to only generate the last 3 days, a change for which I would gladly make a donation.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: makeup</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1480</link>
		<pubDate>Tue, 10 Jun 2008 08:22:48 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1480</guid>
					<description>Today, I have emerged this error</description>
		<content:encoded><![CDATA[<p>Today, I have emerged this error
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jack</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1479</link>
		<pubDate>Fri, 30 May 2008 17:03:51 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1479</guid>
					<description>First thanks for the beautiful piece of code.

I have changed the code and now it comes out nice and clear. Two helps required.

In the output I do not see the line breaks between links - how to add that and where...

Also, tell me a way to limit the tag count as its picking up all the tags.

Regards,

Jack.</description>
		<content:encoded><![CDATA[<p>First thanks for the beautiful piece of code.</p>
<p>I have changed the code and now it comes out nice and clear. Two helps required.</p>
<p>In the output I do not see the line breaks between links - how to add that and where&#8230;</p>
<p>Also, tell me a way to limit the tag count as its picking up all the tags.</p>
<p>Regards,</p>
<p>Jack.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jeff</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1478</link>
		<pubDate>Wed, 28 May 2008 15:59:06 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1478</guid>
					<description>Ok, well my mod did not translate well here, but you get the idea.  Unfortunately it seems this version of wordpress on this site is munging the code in the comments.</description>
		<content:encoded><![CDATA[<p>Ok, well my mod did not translate well here, but you get the idea.  Unfortunately it seems this version of wordpress on this site is munging the code in the comments.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jeff</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1477</link>
		<pubDate>Wed, 28 May 2008 15:57:44 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1477</guid>
					<description>This script is just a little outdated, but I touched it up a bit to limit the sitemap to posts instead of pages, limited results to 1000, and also added tag support for keywords:

Find:

$rows = $wpdb-&amp;#62;get_results(&quot;SELECT ID, post_date_gmt FROM $wpdb-&amp;#62;posts WHERE post_status='publish'&quot;);

Change that to:

$rows = $wpdb-&amp;#62;get_results(&quot;SELECT ID, post_date_gmt FROM $wpdb-&amp;#62;posts WHERE post_status='publish' and post_type = 'post' order by post_date DESC limit 1000&quot;);

Find:

echo &quot;\t\n&quot;;

Change to:

$tagger = 'Base, keywords'; // change these keywords
echo &quot;\t\n&quot;;

Find:

echo &quot;\t\tU2,U2 tours,news\n&quot;; // change these keywords

Change to:

$tags = get_the_tags($row-&amp;#62;ID);

if (!empty($tags)) { 

	foreach($tags as $tag) {

		$tagger .= ',' . $tag-&amp;#62;name;
		
	}

}

echo &quot;\t\t$tagger\n&quot;;</description>
		<content:encoded><![CDATA[<p>This script is just a little outdated, but I touched it up a bit to limit the sitemap to posts instead of pages, limited results to 1000, and also added tag support for keywords:</p>
<p>Find:</p>
<p>$rows = $wpdb-&gt;get_results(&#8221;SELECT ID, post_date_gmt FROM $wpdb-&gt;posts WHERE post_status=&#8217;publish&#8217;&#8221;);</p>
<p>Change that to:</p>
<p>$rows = $wpdb-&gt;get_results(&#8221;SELECT ID, post_date_gmt FROM $wpdb-&gt;posts WHERE post_status=&#8217;publish&#8217; and post_type = &#8216;post&#8217; order by post_date DESC limit 1000&#8243;);</p>
<p>Find:</p>
<p>echo &#8220;\t\n&#8221;;</p>
<p>Change to:</p>
<p>$tagger = &#8216;Base, keywords&#8217;; // change these keywords<br />
echo &#8220;\t\n&#8221;;</p>
<p>Find:</p>
<p>echo &#8220;\t\tU2,U2 tours,news\n&#8221;; // change these keywords</p>
<p>Change to:</p>
<p>$tags = get_the_tags($row-&gt;ID);</p>
<p>if (!empty($tags)) { </p>
<p>	foreach($tags as $tag) {</p>
<p>		$tagger .= &#8216;,&#8217; . $tag-&gt;name;</p>
<p>	}</p>
<p>}</p>
<p>echo &#8220;\t\t$tagger\n&#8221;;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: AKirk</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1473</link>
		<pubDate>Mon, 05 May 2008 18:58:40 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1473</guid>
					<description>Can you limit the Google News Sitemap to only include posts from one particular category of the blog?  I am not very good in PHP, MySQL or wordpress coding.  I am sure it probably can be modified oon line 43 (select all posts) but could use some help for WHERE category has a particular number.  I will play around with it and try not to mess things up, but if you have a quick solution fort his it would be great!

Thanks</description>
		<content:encoded><![CDATA[<p>Can you limit the Google News Sitemap to only include posts from one particular category of the blog?  I am not very good in PHP, MySQL or wordpress coding.  I am sure it probably can be modified oon line 43 (select all posts) but could use some help for WHERE category has a particular number.  I will play around with it and try not to mess things up, but if you have a quick solution fort his it would be great!</p>
<p>Thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Anonymous</title>
		<link>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1471</link>
		<pubDate>Wed, 09 Apr 2008 05:47:59 +0000</pubDate>
		<guid>http://www.kb3kai.com/david_stansbury/2006/11/22/wordpress-sitemap-generator-for-google-news/#comment-1471</guid>
					<description>Short of removing &quot;disallow for .php&quot; from robots.txt, how can I make this work with Google?</description>
		<content:encoded><![CDATA[<p>Short of removing &#8220;disallow for .php&#8221; from robots.txt, how can I make this work with Google?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
