Submitting your sitemap to Google News

Submitting your sitemap to Google News

xml_51If you have been accepted in Google News. Congratulations! Your site is good, well designed and you are a lucky webmaster. O.K but… there’s more work to do know. When you receive the email from Google telling you that the site is accepted there are some suggestions there. Google will crawl your site and index the new urls. If you have three digits in the url, then this url will be included in Google news. Okay, that’s the simplest way but you are a professional and you need to do right things and then you want to submit your sitemap using google webmaster tools.

Of course, Google had its useful links but you need an effective method and you don’t want to spend your life reading life and miracles of XML format.

Before we start -the more than obvious thing-: Your site must be accepted on Google News first.

To begin, there are many plugins that promises us a good xml format but don’t believe them because, simply, they doesn’t work. Some of them doesn’t work fine with big sites –and if you are in Google news it’s more than probably that you are the proud owner of a big site-, some of them creates problems with memory usage and PHP or…

This is a valid plugin that creates a valid xml:

The original plugin is in Italian but it’s also in English then we won’t have any problem using it because we are cosmopolitan people. Let’s download it, let’s install it and let’s activate it in WordPress. Done? Great, take a drink now, we haven’t finished!

Create a file called sitemap-news.php and include there this code:

  1. <?php
  2. header (“Content-type: text/xml”);
  3. $file = implode(”, file(‘sitemap-news.xml’));
  4. $file = ereg_replace(“”, $_SERVER[‘HTTP_HOST’], $file);
  5. echo $file;
  6. ?>

NOTE: Please, change ‘nameofyourdomain’ for your domain name. For example ‘’. I haven’t changed anything more and it worked for me.


Now, go to robots.txt and add your new sitemap there:

  1. User-agent: *
  2. Disallow: /wp-admin/
  3. Disallow: /wp-includes/
  4. Sitemap: <<<<<<——— this is the important line

Note: Please, don’t copy ‘this is the important line’ or my stupid joke. Copy just ‘Sitemap:’ –yes, without quotes-.


Done? Great, you are a genius! Let’s go on. Now go to .httaccess and modify it. .httacess is not a beautiful place in Scotland, no. It’s a file. Add there these lines:

  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. RewriteRule ^sitemap-news.xml$ /sitemap-news.php [L]
  4. RewriteRule ^robots.txt$ /robots.php [L]
  5. </IfModule>

Create an empty file called sitemap-news.xml, upload it through a FTP program and go to our WordPress admin panel and plugin settings (Settings -> google news sitemap. You have various options, fill them and… done! You have a valid xml file with your news in

Go to webmaster tools, test the sitemap and, if there are no problems, you have it. Note that webmaster tools can be ‘a little’ slow and when I say ‘a little’ I’m being ‘a little’ ironic.


Now you can enjoy the drink and be proud.

Of course, this is not a howto or something similar but this method worked for me. I hope this helps.

That’s all folks!

NOTE: based on this article in Spanish:

Click to add a comment

More in Technology


New Website Goes Live for Excel

Yareah MagazineOctober 18, 2016

Mayflex Launches a New Website

Yareah MagazineSeptember 30, 2016
Bluesky helps identify illegal dwellings

Bluesky’s aerial thermal surveys helps Enfield identify illegal dwellings

Yareah MagazineSeptember 28, 2016
Quest End's Cinema-at-Home suite

“Technology know-how will drive market growth of smart home automation” according to Quest End Ltd

Yareah MagazineSeptember 21, 2016

Magenta Technology reaches company growth milestone

Yareah MagazineSeptember 18, 2016
Dr Siraj Shaikh

Planes, Trains & Automobiles; Crypta Labs Appoints Transport Cybersecurity Expert

Yareah MagazineSeptember 16, 2016

Yareah Magazine

Art is Everywhere and Up to You.

About Us - Press Kit - Contact Us

YM on Twitter

Top Posts & Pages

Yareah® Magazine is a Registered Trademark in the United States