Search code examples
wordpresssitemapgoogle-news

Google News sitemap


I run a cricket website, built in wordpress, that has been accepted in Google News but I need to submit an XML sitemap via Webmaster Tools to get my articles appearing.

I have created a very simple sitemap (see code below) that I hope will do the trick but the question is:

** Where to upload it in my file directory?**

Simple enough you would think but many seem to use plugins to generate sitemaps with wordpress sites and I rarely edit files.

The outcome I want is: http://cricketyorkshire.com/newssitemap.xml

Thanks!

--

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
  <url>
    <loc>http://www.example.org/business/article55.html</loc>
    <news:news>
      <news:publication>
        <news:name>Cricket Yorkshire</news:name>
        <news:language>en</news:language>
      </news:publication>
      <news:genres>PressRelease, Blog</news:genres>
      <news:publication_date>2015/07/16</news:publication_date>
      <news:title>How does the month of Ramadan affect cricketers? </news:title>
      <news:keywords>cricket, ramadan, religion, sports, yorkshire</news:keywords>
      </news:news>
  </url>
</urlset>

Solution

  • The sitemap can be anywhere on the site, it really doesn't matter, but the most convenient place is probably the root of your site, next to your wp-config.php as others suggested.

    Google News sitemaps should be updated every single time you publish an article, otherwise it doesn't make sense to have it. Moreover, if you don't submit an always up-to-date sitemap, we will have a hard time discovering your content, AND we might not even be able to discover them at all if you don't have numbers in your URLs (that don't resemble a date)

    Display a three-digit number. The URL for each article must contain a unique number consisting of at least three digits. For example, we can't crawl an article with this URL: http://www.google.com/news/article23.html. We can, however, crawl an article with this URL: http://www.google.com/news/article234.html. Keep in mind that if the only number in the article consists of an isolated four-digit number that starts with 199 or 200, we won't be able to crawl it. Please note that this rule is waived with News sitemaps.

    If you're using wordpress you can simply install a plugin that will generate the sitemap for you, I created such plugin, it works great for many people. To see all google news sitemap related plugins, see https://wordpress.org/plugins/search.php?type=term&q=google+news+sitemap