CNN News plugin
CNN has a number of RSS feeds with current news available, on a number of topics.
This plugin works both as a widget, as inline content replacement and can be used in themes. It can be used as all three simultaneously, but there can be only one instance of the widget. Multiple feeds can be configured and used accordingly. Clicking on a news item will of course take you straight to the relevant article at CNN, as per CNN Terms of Use.
I know there are generic RSS feed widgets out there, but I figured with so many CNN feeds they warranted their own widget with easier configuration than your average generic RSS widget.
NOTE! Always upgrade to the latest version if you experience problems, most things are fixed already.
The latest version is 2.2.
Known bugs: See the Google News plugin post. These two widgets are virtually identical, so bugs also tend to be the same in both.
Let me know if you find bugs, or if you want additional features or changes. Admin-selectable news item look, extra class/id for CSS etc.












August 17th, 2008 at 22:42
Hi Andrey!
That looks like a bug. I’ll send you an email with a bugfix for you to try out.
OK
August 12th, 2008 at 13:10
Oops, php code disappeared
I am inserting do_action(’cnn_news’)
August 12th, 2008 at 13:07
Hi,
Inserting into index.php of my custom theme gives
“Warning: Invalid argument supplied for foreach() in /hsphere/local/home/xzamen/my.xzamen.info/wordpress/wp-content/plugins/cnn-news/cnn_news.php on line 622
No default feed available”
However using it in single.php works fine. But I really need it in index.php. How can this be fixed?
Thanks.
May 22nd, 2008 at 09:14
Hi braddoc
The debug() call appears to be a bug inside WordPress, I’ll see if I can track it down and report it. The RSS support inside WordPress is a complete mess, and I might end up rolling my own instead of relying on WordPress functionality there.
OK