Watchdog Dempsey
Add to Google
Add to My Yahoo!
Add to My AOL

March 19, 2008

Google News Sitemap Script for WordPress - Updated

category: Computer & Security, Internet — David Stansbury @ 3:05 pm — permalink | pingback | RSS

I finally had an opportunity to try out my WordPress Sitemap Generator for Google News on a live, WordPress-powered, Google-Newsworthy website. I fixed the old invalid date format bug, edited the news category keywords list to match the target website and uploaded the Google News Sitemap script to the website. Then I logged into Webmaster Tools and submitted the News sitemap URL location to Google. It seems to be working, Google accepted the feed with an OK status (see screen shot below).

Note that if Google considers the base URL to be the newsworthy site, and does not specify a sub-folder, then the Google News sitemap must be in the base folder. If the content you wish to feed Google is in a sub-folder then place the script in the base folder and modify where the script is pulling the WordPress data from. For example, change:

require(”wp-config.php”);

to

require(”newsroom/wp-config.php”);

The line to modify is on line 27 of the current script version (download).

You may also rename this script and replicate to point to multiple feed sources; in my case I had two feed sources (WordPress blog installations) on the same website to submit to Google.

>> Don’t forget to change the keywords list on line 58 to match your site content! See the list of Google News Categories here.

See the Google News Sitemap Generator page from November 2006 for more details.

-

Google Webmaster Tools - accepted Google News URL submission

Bookmark this to:
del.icio.us | soc.ialize.us | digg | furl | reddit | Yahoo | Google | Netscape | Live | AOL

• • •
Next Page »
Random thoughts from David Stansbury, KB3KAI