Kolbu

Computers, Gadgets and Beyond!
Subscribe


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.

110 Comments to “Google News plugin”


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

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

    Anyone gone through this?

    Thanks!

    2
  3. 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!

    3
  4. 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?
    OK

    4
  5. 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

    5
  6. I am curious if anyone is using this with 3.2.x before I spend time trying it. ;-)

    Seems like a great plugin.

    6
  7. 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.

    7
  8. 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.

    8
  9. 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!

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

    10

1 Trackbacks/Pingbacks

  1. just built our new 2012 Page with a high-detail image of a Maya Calendar | mini-tick.com 19 11 10

Leave a Reply


− two = 6

  • Hit me

  • Current Poll

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