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.

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,

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

    2
  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?

    Thanks!

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

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

    5
  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

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

    Seems like a great plugin.

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

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

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

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

    11
  12. sagarganatra says:

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

    12


Leave a Reply

  • Hit me

  • Current Poll

    Which sub-note are you getting?
    Total Votes: 3012 Started: August 19, 2008 Back to Vote Screen
  • Default test

    • CrossFit: Patrick Vellner, 2nd Fittest Man
      Canadian Patrick Vellner is the second fittest man on the planet, but does the chiropractor student think he can take down Mat Fraser at CrossFit Games?
    • Trump Jr.: Why didn't you cure cancer decades ago, Joe?
      The President's son, Donald Trump Jr., slammed former Vice President Joe Biden over his decades in Washington and delivered what many consider to be a low blow.
    • The World’s Best Blind Mountain Biker
      Anyone who rides a mountain bike on downhill terrain knows how perilous it can be. Well, imagine riding downhill without being able to see. Brian Bushway is a pro at it. Known as the world’s best blind mountain biker, he lost his sight when he was 14. He didn’t want to navigate the world with a cane, so Bushway learned how to see with sound. Like bats, he relies on echolocation when he mountain bikes, using sound to locate objects. If you would like to share this story with someone who is visually impaired, check out this version with audio descriptions: https://youtu.be/Rmdig8xfris
    • Mitch McConnell: Slavery reparations aren't a 'good idea'
      Senate Majority Leader Mitch McConnell said he opposes paying reparations for slavery, arguing "none of us currently living are responsible" for what he called America's "original sin."
    • Video shows rare look inside Syrian battleground
      Airstrikes and fighting in Syria's last rebel-held province have left a trail of death and destruction. CNN's Nick Paton Walsh has the details.