Platinum Partner

Intergrate an rss feed to Wordpress Dashboard

A great, Easy to use function which enables you to intergrate an RSS feed into a wordpress website dashboard...

Very usefull to web-designers and website managers looking to stay up to date!

Also this function would locate your RSS widget on the top left corner of your WP site dashboard

add_action('wp_dashboard_setup', 'remove_dashboard_widgets');
function remove_dashboard_widgets() {
     global $wp_meta_boxes;
     // remove unnecessary widgets

     // var_dump( $wp_meta_boxes['dashboard'] ); // use to get all the widget IDs

     unset(
          $wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'],
          $wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'],
          $wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']
     );
     // add a custom dashboard widget

     wp_add_dashboard_widget( 'dashboard_custom_feed', __('News from Example.com', 'sagive'), 'dashboardSelectedFeedDisplay', 'side', 'high' ); //add new RSS feed output

}
function dashboardSelectedFeedDisplay() {
     echo '
'; wp_widget_rss_output(array( 'url' => 'http://www.example.com/feed', 'title' => 'Example Site Welcome Title', 'items' => 2, 'show_summary' => 1, 'show_author' => 1, 'show_date' => 1, )); echo "
"; }
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}