/ Published in: PHP
URL: http://www.pacificshoreshb.com
Expand |
Embed | Plain Text
<? require_once('/home/p11creative/www/pacific.p11.com/magpierss/rss_fetch.inc'); ?> <?php $url = "http://www.pacificshoreshb.com/news/?feed=atom"; $rss = fetch_rss($url); $item = $rss->items[0]; $postTitle = $item['title']; $postContent = $item['summary']; $linkTitle = $item['link']; echo "<h2>Community News</h2>"; echo "<h4>$postDate</h4>"; echo "<h3>$postTitle</h3>"; $no_of_words = 24; print "<p>"; for($i=0; $i < $no_of_words; $i++) { } print "... <a href=\"http://www.pacificshoreshb.com/news/\" class=\"tenner\">MORE ></a></p>"; } else { print "<p>"; for($i=0; $i < $no_of_words; $i++) { } print " <a href=\"http://www.pacificshoreshb.com/news/\" class=\"tenner\">MORE ></a></p>"; } ?>
Comments
Subscribe to comments
You need to login to post a comment.

Neat but, I think you mean MagpieRSS (rather than MagieRSS)
Right you are Batfan. Changed it.