$rss = fetch_feed($rss_feed);
//display the RSS feed
wp_widget_rss_output( array(
'url' => $rss_feed,
'title' => $title,
'items' => $rss_items,
'show_summary' => 1
) );
http://www.wprecipes.com/wordpress-tip-fetch-and-display-rss-feeds
$rss = fetch_feed($rss_feed);
//display the RSS feed
wp_widget_rss_output( array(
'url' => $rss_feed,
'title' => $title,
'items' => $rss_items,
'show_summary' => 1
) );
http://www.wprecipes.com/wordpress-tip-fetch-and-display-rss-feeds
转载于:https://www.cnblogs.com/myjavawork/archive/2012/08/19/2646599.html