r11
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display an external feed as a page: parsing an RSS Feedargh.. I still cant seem to get other variables (description, author, etc…) to show. Any suggestions?
Forum: Fixing WordPress
In reply to: Display an external feed as a page: parsing an RSS Feed<!-- RSS feed from Rojo --> <?php if (is_page('RSS Syndication') ){ require_once(ABSPATH . WPINC . '/rss.php'); wp_rss('feedurl.com/feed.rss', 10); } ?> <!-- End of feed -->
Woop wOOp! This seems to work for me. I hope this helps someone else. now to embed a player to play podcast feeds back to back like a streaming audio channel with other peoples bandwidth! hehe. Let me know if you figure this one out.
Forum: Fixing WordPress
In reply to: Paragraph marks around imported RSS entriesWhat does your code look like? I am doing the same thing. Check out my other post to see my code.
Forum: Fixing WordPress
In reply to: How to add RSS without using widget<!-- RSS feed as a page by r11 --> <?php if (is_page('RSS Syndication') ){ require_once(ABSPATH . WPINC . '/rss.php'); $rss = fetch_rss('https://www.server.com/externalfeed.rss'); for( $i=0; $i<25; $i++ ) { $item=$rss->items[$i]; $pubdate=substr($item['pubdate'], 0, 16); echo ' <a href="'.$item['link'].'" title=" '.$item['title'].'"><b>'.$item['title'].'</b></a> <i>'.$pubdate.'</i> '.$item['content'].' content '.$item['summary'].' summary '.$item['title'].' title '.$item['content'].' content <a href="'.$item['link'].'">more...</a> '; } } ?> <!-- End of feed -->
I am not sure why but not all of the information gets parsed. Maybe someone could help me. Anyway, if you put this into the page.php file of your template, as long as “is_page(???)” is set to the page ??? (name of your page), then it will run the parser. I hope this helps, now we can go and figure out how to get more information from the feed to display.