[Plugin: Simplepie] Random item from RSS-feed
-
Hi there, I’ve recently discovered WordPress and all amazing functionality and plugins. I’ve learned a lot myself, but I’m kind of stuck now.
I’m using the SimplePie for WordPress plugin to display a variety of RSS-feeds on my blog. One of them being two feeds combined to one, both with a daily cartoon. I’d like to display a random cartoon to my visitors, but I’m not quite sure how. This is the code which goes in the page template:
<?php echo SimplePieWP(array( 'http://feedone.com/1.rss', 'http://feedtwo.com/2.rss' )); ?>
And I would like one other thing: styling the first three (or so) items from a feed differently (first three including description and thumbnail, others just the titles). If it’s possibly to call the items from the feed starting on a certain item, I could display the feed twice, first time calling the first three items with template 1, the second one with the second template. But perhaps this could be easier done within the templates?
I would really appreciate some help on this matter. Unfortunately I’m not that familiar with PHP, so please be gentle with me! 🙂
- The topic ‘[Plugin: Simplepie] Random item from RSS-feed’ is closed to new replies.