function ci_dashboard_widget_igniter_news()
 {
     $feeds = array('news' => array('link' => '//www.cssigniter.com/ignite/blog/', 'url' => 'https://www.cssigniter.com/ignite/blog/feed/', 'title' => __('CSSIgniter Blog', 'ci_theme'), 'items' => 3, 'show_summary' => 1, 'show_author' => 0, 'show_date' => 1));
     // This is cached for 12 hours by default.
     // See the 'wp_feed_cache_transient_lifetime' filter if you need to change it.
     wp_dashboard_primary_output('ci_dashboard_widget_igniter_news', $feeds);
 }
Example #2
0
 /**
  * Renders the news dashboard widget.
  *
  * @since 3.9.0
  */
 public function display_news_dashboard_widget()
 {
     // Create two feeds, the first being just a leading article with data and summary, the second being a normal news feed
     $feeds = array($first = array('link' => 'https://theme-fusion.com/blog/', 'url' => 'https://theme-fusion.com/feed/', 'title' => __('ThemeFusion News', 'Avada'), 'items' => 1, 'show_summary' => 1, 'show_author' => 0, 'show_date' => 1), $news = array('link' => 'https://theme-fusion.com/blog/', 'url' => 'https://theme-fusion.com/feed/', 'title' => __('ThemeFusion News', 'Avada'), 'items' => 4, 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0));
     wp_dashboard_primary_output('themefusion_news', $feeds);
 }