feeds'), 'a_dashboard', array( 'all_link' => 'http://thefrosty.net/feed.php', 'feed_link' => 'http://pipes.yahoo.com/pipes/pipe.run?_id=52c339c010550750e3e64d478b1c96ea&_render=rss', 'width' => 'half', // OR 'fourth', 'third', 'half', 'full' (Default: 'half') 'height' => 'double', // OR 'single', 'double' (Default: 'single') ) ); } // Function: Add Dashboard Widget add_filter( 'wp_dashboard_widgets', 'a_add_dashboard_widget' ); function a_add_dashboard_widget($widgets) { global $wp_registered_widgets; if (!isset($wp_registered_widgets['a_dashboard'])) { return $widgets; } array_splice($widgets, sizeof($widgets)-1, 0, 'a_dashboard'); return $widgets; } // Function: Print Dashboard Widget function a_dashboard($sidebar_args) { global $wpdb; extract( array($sidebar_args, EXTR_SKIP)); echo $before_widget; echo $before_title; echo $widget_name; echo $after_title; //echo 'WPCult'; include_once(ABSPATH . WPINC . '/rss.php'); $rss = fetch_rss('http://pipes.yahoo.com/pipes/pipe.run?_id=52c339c010550750e3e64d478b1c96ea&_render=rss'); // See: http://alexpolski.com/2009/03/25/how-to-merge-multiple-feeds-to-one-feed/ $items = array_slice($rss->items, 0, 6); if (empty($items)) echo '

Nothing to see people..

'; else $itemcount == 0; foreach ( $items as $item ) : $itemcount++; ?>

' title=''>

'; } endforeach; echo $after_widget; } ?>