Over a million developers have joined DZone.

Intergrate an rss feed to Wordpress Dashboard

DZone's Guide to

Intergrate an rss feed to Wordpress Dashboard

Free Resource

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

     // 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 "
"; }

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}