使用fetch_feed() 如果要分析外部提要:
<?php $feed = fetch_feed( $uri ); ?>
更新1:删除默认提要:
remove_action(\'wp_head\', \'feed_links_extra\', 3 );
remove_action(\'wp_head\', \'feed_links\', 2 );
更新2:添加自定义源:
add_action(\'wp_head\', \'add_custom_feed\');
function add_custom_feed() {
echo \'<link rel="alternate" type="application/rss+xml" title="Custom Feed" href="\' . get_bloginfo(\'rss_url\') . \'" />\';
}