|
@@ -62,7 +62,7 @@ http://digwp.com/2010/10/customize-wordpress-dashboard/
|
|
|
function bones_rss_dashboard_widget() {
|
|
function bones_rss_dashboard_widget() {
|
|
|
if ( function_exists( 'fetch_feed' ) ) {
|
|
if ( function_exists( 'fetch_feed' ) ) {
|
|
|
// include_once( ABSPATH . WPINC . '/feed.php' ); // include the required file
|
|
// include_once( ABSPATH . WPINC . '/feed.php' ); // include the required file
|
|
|
- $feed = fetch_feed( 'http://themble.com/feed/rss/' ); // specify the source feed
|
|
|
|
|
|
|
+ $feed = fetch_feed( 'http://feeds.feedburner.com/wpcandy' ); // specify the source feed
|
|
|
$limit = $feed->get_item_quantity(7); // specify number of items
|
|
$limit = $feed->get_item_quantity(7); // specify number of items
|
|
|
$items = $feed->get_items(0, $limit); // create an array of items
|
|
$items = $feed->get_items(0, $limit); // create an array of items
|
|
|
}
|
|
}
|