Customize your theme in the Theme Customizer panel. See changes live without page reloading.   

修改添加Feed Rss订阅源

当前位置:
估计的阅读时间: < 1分钟

打开文件:applicationcontrollersadminFeed_news.php
将其中的订阅源地址改成自己的,或者按照格式添加即可;添加包含源名称和地址。
代码部分:

private $rss_feed_sites = array(array('name' => '新浪女性', 'feed_url' => 'http://rss.sina.com.cn/news/allnews/eladies.xml'), array('name' => '新浪军事', 'feed_url' => 'http://rss.sina.com.cn/jczs/focus.xml'), array('name' => '新浪国内新闻', 'feed_url' => 'http://rss.sina.com.cn/news/china/focus15.xml'));

如果要添加其他的添加array('name' => '订阅源名称', 'feed_url' => '订阅源地址'), 进去即可:

private $rss_feed_sites = array(array('name' => '新浪女性', 'feed_url' => 'http://rss.sina.com.cn/news/allnews/eladies.xml'), array('name' => '新浪军事', 'feed_url' => 'http://rss.sina.com.cn/jczs/focus.xml'), array('name' => '订阅源名称', 'feed_url' => '订阅源地址'), array('name' => '新浪国内新闻', 'feed_url' => 'http://rss.sina.com.cn/news/china/focus15.xml'));
这篇文章有帮助吗?
浏览: 0
Call to action title here