{"id":2845,"date":"2008-04-08T15:52:17","date_gmt":"2008-04-08T15:52:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/google-news\/"},"modified":"2009-07-22T20:55:32","modified_gmt":"2009-07-22T20:55:32","slug":"google-news","status":"closed","type":"plugin","link":"https:\/\/eo.wordpress.org\/plugins\/google-news\/","author":415206,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.5.1","stable_tag":"trunk","tested":"2.8.2","requires":"2.3.3","requires_php":"","requires_plugins":"","header_name":"Google News","header_author":"Olav Kolbu","header_description":"","assets_banners_color":"","last_updated":"2009-07-22 20:55:32","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.kolbu.com\/donations\/","header_plugin_uri":"http:\/\/www.kolbu.com\/2008\/04\/07\/google-news-plugin\/","header_author_uri":"http:\/\/www.kolbu.com\/","rating":0,"author_block_rating":0,"active_installs":100,"downloads":59622,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","2.0","2.0.1","2.1","2.1.1","2.2","2.3","2.4","2.5","2.5.1"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1538855","resolution":"2","location":"plugin","width":588,"height":408},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1538855","resolution":"3","location":"plugin","width":528,"height":222},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538855","resolution":"1","location":"plugin","width":357,"height":270}},"screenshots":{"1":"Widget in action under the Prosumer theme. Note the mouseover showing additional text from the news item.","2":"Small part of the admin Manage page for the plugin.","3":"Inline example under the Prosumer theme, replacing &lt;!--google-news--&gt; in content."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[150,15242,1248,162],"plugin_category":[43],"plugin_contributors":[81156],"plugin_business_model":[],"class_list":["post-2845","plugin","type-plugin","status-closed","hentry","plugin_tags-google","plugin_tags-google-news","plugin_tags-news","plugin_tags-widget","plugin_category-customization","plugin_contributors-olav-kolbu","plugin_committers-olav-kolbu"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/google-news.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/google-news\/trunk\/screenshot-1.png?rev=1538855","caption":"Widget in action under the Prosumer theme. Note the mouseover showing additional text from the news item."},{"src":"https:\/\/ps.w.org\/google-news\/trunk\/screenshot-2.png?rev=1538855","caption":"Small part of the admin Manage page for the plugin."},{"src":"https:\/\/ps.w.org\/google-news\/trunk\/screenshot-3.png?rev=1538855","caption":"Inline example under the Prosumer theme, replacing &lt;!--google-news--&gt; in content."}],"raw_content":"<!--section=description-->\n<p>Google aggregates news from over 4500 news sources, updated\ncontinously. The results can be retrieved as a number of \nRSS feeds, where you can create your own specific feed by\nspecifying one of more than 40 regions\/languages, and an\noptional topic ranging from Domestic to Most Popular to\nEntertainment. Currently there are nine topics, including,\nof course, All. In addition to this, any feed can be filtered \nthrough a search query so that only news items matching your \nquery will be shown. Note that not all combinations of \nregion\/language and topic has been enabled by Google but\nit should degrade gracefully.<\/p>\n\n<p>This plugin works both as a widget, as inline content\nreplacement and can be called from themes. Any number of \ninline replacements or theme calls allowed, but only one \nwidget instance is supported in this release.<\/p>\n\n<p>For widget use, simply use the widget as any other after\nselecting which feed it should display. For inline content\nreplacement, insert the one or more of the following strings in \nyour content and they will be replaced by the relevant news feed.\nFor theme use, add the do_action function call described below.<\/p>\n\n<ol>\n<li><strong><code>&lt;!--google-news--&gt;<\/code><\/strong> for the default feed<\/li>\n<li><strong><code>&lt;!--google-news#feedname--&gt;<\/code><\/strong><\/li>\n<\/ol>\n\n<p>Shortcodes can be used if you have WordPress 2.5 or above,\nin which case these replacement methods are also available.<\/p>\n\n<ol>\n<li><strong><code>[google-news]<\/code><\/strong> for the default feed<\/li>\n<li><strong><code>[google-news name=\"feedname\"]<\/code><\/strong><\/li>\n<\/ol>\n\n<p>Calling the plugin from a theme is done with the WP do_action()\nsystem. This will degrade gracefully and not produce errors\nor output if plugin is disabled or removed.<\/p>\n\n<ol>\n<li><strong><code>&lt;?php do_action('google_news'); ?&gt;<\/code><\/strong> for the default feed<\/li>\n<li><strong><code>&lt;?php do_action('google_news', 'feedname'); ?&gt;<\/code><\/strong><\/li>\n<\/ol>\n\n<p>Enable plugin, go to the Google News page under \nDashboard-&gt;Settings and read the initial information. Then \ngo to the Google News page under Dashboard-&gt;Manage and \nconfigure one or more feeds. Then use a widget or insert\nrelevant strings in your content or theme.<\/p>\n\n<p>Additional information:<\/p>\n\n<p>The available options are as follows.<\/p>\n\n<p><strong>Name:<\/strong> Optional feed name, that can be used in the \nwidget or the inline replacement string to reference\na specific feed. Any feed without a name is considered\n\"default\" and will be used if the replacement strings do\nnot reference a specific feed. If there are more than\none feed with the same name, a random of these is picked\nevery time it is used. This also applies to the default\nfeed(s).<\/p>\n\n<p><strong>Title:<\/strong> Optional, which when set will be used in the\nwidget title or as a header above the news items when \ninline. If the title is empty, then a default title\nof \"Google News : &lt;region&gt; : &lt;feed type&gt;\" is used. Note\nthat as per Google Terms of Service it is a requirement\nto state that the news come from Google.<\/p>\n\n<p><strong>News region:<\/strong> A dropdown list of 40 choices, determining\nthe region\/language of the feed.<\/p>\n\n<p><strong>News type:<\/strong> Another dropdown list, determining what type of\nnews you are after. Sci\/Tech, Business, Health etc.<\/p>\n\n<p><strong>Output type:<\/strong> Some Google feeds come with just text, \nsome pictures or pictures on nearly every news item. Chose\nwhich one you want here.<\/p>\n\n<p><strong>News item length:<\/strong> Short or long. The short version is really just \nthe news item title as a one liner but probably the one most \nWP admins will use. The long version is a 3-4 line teaser that \nhas been severely stripped of useless markup that Google insists \non passing along, including tables, links, colour\/font\/style\nsettings etc. I've tried to clean it up so it won't mess up your \ntheme. For the short version, the long text without html tags is \navailable as a mouse rollover\/tooltip.<\/p>\n\n<p><strong>Max items to show:<\/strong> As the title says, if the feed has\nsufficient entries to fulfil the request.<\/p>\n\n<p><strong>Optional query filter:<\/strong> One of the most important parts of\nthe Google News RSS Feed is the ability to filter the news\nwith your very own search query. Get relevant, up to date\nnews on the exact topic you want. Note that if you add a\nsearch query, then the short item length will include an \n\"all N news articles\" link curtesy Google. If you choose\nto add a query, then you most likely want to set a title\nas well. To explain to the viewer what kind of news you have\nselected for them to see. The News Query isn't like a standard\nGoogle Query, so you can't use || between words to search\nfor one or the other. So IFF you start your query with\nthe word <strong>OR<\/strong> then the rest of the words will be or'ed\ntogether. I.e. a query string of 'OR this that' will look\nfor news containing either this or that. This is really \njust a test, so the actual query language used here may change in \nfuture versions.<\/p>\n\n<p><strong>Cache time:<\/strong> The feeds are now fetched using WordPress \nbuiltin MagpieRSS system, which allows for caching of feeds\na specific number of seconds. Cached feeds are stored in\nthe backend database.<\/p>\n\n<p>Clicking on a news item will of course take you via Google to\nthe news site with the relevant article, as per Google Terms of Use.<\/p>\n\n<p>If you want to change the look&amp;feel, the inline table is \nwrapped in a div with the id \"google-news-inline\" and the\nwidget is wrapped in an li with id \"google-news\". Let me \nknow if you need more to properly skin it.<\/p>\n\n<p><strong><a href=\"http:\/\/downloads.wordpress.org\/plugin\/google-news.zip\">Download now!<\/a><\/strong><\/p>\n\n<p><a href=\"http:\/\/www.kolbu.com\/2008\/04\/07\/google-news-plugin\/\">Support<\/a><\/p>\n\n<p><a href=\"http:\/\/www.kolbu.com\/donations\/\">Donate<\/a><\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Unzip into the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the Dashboard-&gt;Plugins admin menu.<\/li>\n<li>See configuation pages under Dashboard-&gt;Settings, Dashboard-&gt;Tools and on the widget page.<\/li>\n<\/ol>\n\n<p>Note if you're upgrading from a previous release, there may be\nsome strangeness the first time you edit an old feed. Try again\nand it will work. Or delete the feed and create again, guaranteed\nfix. :-)<\/p>\n\n<!--section=changelog-->\n<h4>2.5.1<\/h4>\n\n<ul>\n<li>Plugin disappeared from WP.org, maybe this upgrade will reinstate<\/li>\n<li>Converted to new ChangeLog syntax<\/li>\n<li>No other changes from 2.5<\/li>\n<\/ul>\n\n<h4>2.5<\/h4>\n\n<ul>\n<li>Added 25 new languages\/locations<\/li>\n<\/ul>\n\n<h4>2.4.1<\/h4>\n\n<ul>\n<li>Fixed minor markup glitch<\/li>\n<\/ul>\n\n<h4>2.4<\/h4>\n\n<ul>\n<li>Fixed WP 2.7 compat problems<\/li>\n<\/ul>\n\n<h4>2.3<\/h4>\n\n<ul>\n<li>Fixed problems when plugin was used in themes<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Queries starting with OR will use remaining words in query as ORed search. I.e. 'OR this that' will search for this or that.<\/li>\n<li>Ability to call plugin from a theme.<\/li>\n<li>Bugfixes for admins with db table character sets not matching that of their WordPress install.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Major rewrite, again. <\/li>\n<li>Multiple feeds allowed. <\/li>\n<li>Using WP builtin RSS fetching and caching system. <\/li>\n<li>Shortcodes are supported. <\/li>\n<li>Rewrote more PHP5-only code, should now work fine with PHP4<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Minor bugfix. Options were reset in some circumstances.<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Rewritten from scratch. Now uses a class to avoid polluting the name space. Hopefully adhering to best practices plugin writing.<\/li>\n<li>Can now be used both as a widget and as inline content replacement.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Removed dependency on PHP 5.1++ functionality.<\/li>\n<li>Fixed UTF8-related bugs. <\/li>\n<li>\n<ul>\n<li>Not a public release.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Displays news items from selectable Google News RSS feeds, inline, as a widget or in a theme. Multiple feeds allowed. Query filters and caching.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2845"}],"author":[{"embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/olav-kolbu"}],"wp:attachment":[{"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2845"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2845"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2845"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2845"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2845"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/eo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}