Easily add Google News search results to posts, pages, or sidebars on your WordPress site.
This plugin can be used in two ways: through a widget, or with shortcodes.
The 'Simple Google News' WordPress plugin makes it easy to display Google News results on your WordPress site’s posts or pages by using the following shortcode:
There are a handful of optional parameters that you can use to customize the output to your liking.
query – Default: none. Use this if you want to search Google News for a particular word or phrase.
limit – Default: 5, Max: 10. Using the ‘limit’ parameter, you can set the maximum number of results that you would like to display on your post or page.
images – Default: on. Images are turned on by default. If you would like to turn them off, set the images parameter to ‘off.’ Note: Not all news stories will have an image.
length – Default: 200. The length parameter lets you control how many characters of the description (rounded to the nearest complete word) should be shown.
region – Default: us. With the ‘region’ parameter, you can choose to show news from a particular part of the world. To see the list of currently supported regions, visit link. Note the ‘ned’ parameter that's present in each region link. For example, India’s ned parameter is set to ‘in’. That is the value you would use to display news from that particular region.
sort - Default: relevancy. This parameter gives you additional control over the results that are returned. Here is a list of acceptable values:
topic – Default: none. If you want to display news by topic (ie: technology, entertainment, etc), you can do so with this parameter. For example, if you wanted to show technology results, you would set your shortcode to something like this:
[google_news limit="2" topic="t"]
Note: the topic parameter overrides the query parameter. So if you tried to do something like:
[google_news query="android" topic="t"]
Google News would ignore the query.
Here are the acceptable topic values:
Requires: 2.5 or higher
Compatible up to: 3.6.1
Last Updated: 2013-10-12
Active Installs: 2,000+
0 of 2 support threads in the last two months have been resolved.
Got something to say? Need help?