This can be used to add your company RSS feed to your customers WordPress dashboard. Simply add this code to the functions.php file.
<?php function shaken_rss_output(){ echo '<div class="rss-widget">'; wp_widget_rss_output(array( 'url' => 'https://www.nick-shaw.co.uk/feed', //put your feed URL here 'title' => 'Latest News', // Your feed title 'items' => 3, //how many posts to show 'show_summary' => 1, // 0 = false and 1 = true 'show_author' => 1, 'show_date' => 1 )); echo "</div>"; } // Hook into wp_dashboard_setup and add our widget add_action('wp_dashboard_setup', 'shaken_rss_widget'); // Create the function that adds the widget function shaken_rss_widget(){ // Add our RSS widget wp_add_dashboard_widget( 'shaken-rss', 'RSS Widget', 'shaken_rss_output'); } ?>
Thanks for the info I have added this to my site and it works perfectly.