php - Magpie RSS not displaying content -


i have blog's rss feed trying display on website using magpie rss parser. correctly fetching 'link' , 'title' tags, not fetch content of blog's post. in past, have gotten work, content enclosed in tag. in case, content appears such:

xml:

<content type="html">test post&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/886334333339671757-1360251841923051040?l=grippofunkband.blogspot.com' alt='' /&gt;&lt;/div&gt;</content> 

php

require_once 'rss/rss_fetch.inc';  $url = 'http://feeds.feedburner.com/grippofunkband?format=xml'; //http://grippofunkband.blogspot.com/feeds/posts/default'; $rss = fetch_rss($url);  $i = 0; $max = 4; foreach ($rss->items $item ) {     $title = $item['title'];     $content = $item['content'];             $url = $item['link'];     $pubdate = $item['updated'];     echo "<li>$title<br />$url<br />$content</li>";//<a href='$url'></a>     if (++$i == $max) break;                         } 

can think of why it's not grabbing what's in contents tag, or if there way can work around issue? appreciated!

that's not rss feed. it's atom feed, think basic problem. memory, try grabbing atom_content instead of content, may depend on exact version of magpie you're using.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -