我只需要从6个rss提要中获得一些正确的结果,我正在获取6个提要,并在http://thehoopdoctors.com/online2/newfeed/
我从6个rss提要中获得了结果,就像第一次从http://thehoopdoctors.com/online2/newfeed/",
然后全部"http://thepigskindoctors.com/newfeed/",
然后全部"http://thepuckdoctors.com/newfeed/",
然后全部"http://thecagedoctors.com/newfeed/",
然后全部"http://thedugoutdoctors.com/newfeed/",
然后全部"http://videogoneviral.com/newfeed/"
我只需要一个接一个。
我只需要从所有URL一个接一个地获取帖子"http://thepigskindoctors.com/newfeed/",
第一个岗位"http://thepuckdoctors.com/newfeed/",
第一次邮寄等等。
我的代码是
<?php
$rsslist=array(
"http://thehoopdoctors.com/online2/newfeed/",
"http://thepigskindoctors.com/newfeed/",
"http://thepuckdoctors.com/newfeed/",
"http://thecagedoctors.com/newfeed/",
"http://thedugoutdoctors.com/newfeed/",
"http://videogoneviral.com/newfeed/"
);
$feed = fetch_feed($rsslist);
?>
<ul id="news-ticker" style="float: left;height: 15px !important; margin-left: 2px; margin-top: 10px; overflow: hidden; position: relative;width: 500px;">
<?php
foreach($feed->get_items() as $item) {?>
<li class="news"><a style="color:white !important;" href="<?php echo $item->get_permalink();?>"><?php echo $item->get_title();?></a></li>
<?php }?>
</ul>