Computers, Gadgets and Beyond!

Google News plugin

April 07, 2008 By: webmaster Category: WordPress Plugins

Displays N first news items from a selectable Google News RSS feed, inline or as a widget.

Google aggregates news from over 4500 news sources, updated continously. The results can be retrieved as a number of RSS feeds, where you can create your own specific feed by specifying one of more than 40 regions/languages, and an optional topic ranging from Domestic to Most Popular to Entertainment. Currently there are nine topics, including, of course, All. In addition to this, any feed can be filtered through a search query so that only news items matching your query will be shown. Note that not all combinations of region/language and topic has been enabled by Google but it should degrade gracefully.

This plugin works both as a widget, as inline content replacement and can be used in themes. It can be used as both simultaneously, but there can be only one instance of the widget. Multiple feeds can be configured and used accordingly.

NOTE! Always upgrade to the latest version if you experience problems, most things are fixed already. 🙂

The latest version is 2.5.

If you’ve configured feeds that use character sets like cyrillic, arabic and you’re getting errors from WP when trying to view the feeds then your WP MySQL database tables may be created with the wrong character set. Let me know and I’ll give you some pointers.

Download Google News plugin

If you have a question or other comment, use the form below. Thank you!

Known bugs:

  • There is a bug in the WordPress RSS engine, that sometimes show up when people use this widget. If you get something resembling “unknown function debug() in line 504 of wp-includes/rss.php” then that’s one of them. WP is aware of the problem, and apparently a fixed rss.php might be showing up in the next release. As a quick-fix edit wp-includes/rss.php and change line 503 from if ( MAGPIE_DEBUG ) { to if ( MAGPIE_DEBUG > 1 ) {
  • When the widget fails with a php error like the one above, the template goes out of whack. I’ve made sure none of those are my fault in the next minor upgrade due out soon. I’m looking at better workarounds for the bug above first, so release might be a short while yet. Don’t want to spam you all with multiple releases like some widget writers…

Example of inline content replacement.

Default feed <–google-news–>, alternating randomly between two feeds:

    No default feed available

A different feed <–google-news#non-default–>:

Shortcode test non-default [ google-news name=”non-default” ]:

    No default feed available

Shortcode test default [ google-news ]:

    No default feed available

Random test:

Shortcodes are only available in WordPress 2.5 and up.

111 Comments to “Google News plugin”

  1. I’m a user of your plugin, Google News, and I really enjoyed it. Because I am Brazilian, I have a problem and would like to help me solve it.

    In the settings of the plugin there is the option for regional news, including Brazil. But even choosing that location, the news is still displayed in Google News USA.

    Is there any extra configuration or version that fixes this problem?

    Thank you,

  2. is there a way to rss only certain keyword to display?

  3. I am using thw widget but it will show feeds in English only, although I have set it to Portuguese.

    Anyone gone through this?


  4. Hi,

    How can I nofollow all the links in the google news feed? Any help would be greatly appreciated! Oh, and thanks for such a great plugin!

  5. Note that Google does not support every combination of language and feed type. I don’t know how extensive Google’s Portuguese selection is, but are you unable to find a single Portuguese feed type?

  6. Hi,

    thank for this great plugin

    its used to be working but right now it no longer working for 1 week.
    i did not change any setting
    what could be the issue here ?

    its say google news is not available

  7. I am curious if anyone is using this with 3.2.x before I spend time trying it. 😉

    Seems like a great plugin.

  8. Sterling says:

    What a shame the creator of this widget ignores requests for assistance. He was so close to creating something very useful for thousands of publishers.

  9. I’ve created a news feed which displays really well on my site, however when I click any of the links I get the following error:

    Redirect Notice
    The previous page is sending you to an invalid url.
    If you do not want to visit that page, you can return to the previous page.

    Any advice would be appreciated.

  10. Great plug-in! Thank you! I would like content to appear like it does on Google News (image to the left, title and text to the right). Is that possible? Thanks!

  11. What is the URL of hence generated News XML Sitemap ?

  12. sagarganatra says:

    How to Display Google RSS Feed In my Blog Post and Home Page can you please tell me ?


Leave a Reply

  • Hit me

  • Current Poll

    Which sub-note are you getting?
    View Results
  • Yet Another Test Fd