Title: [Plugin: Simplepie] Random item from RSS-feed
Last modified: August 19, 2016

---

# [Plugin: Simplepie] Random item from RSS-feed

 *  [morecow](https://wordpress.org/support/users/morecow/)
 * (@morecow)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/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.

## Tags

 * [item](https://wordpress.org/support/topic-tag/item/)
 * [RSS](https://wordpress.org/support/topic-tag/rss/)
 * [simplepie](https://wordpress.org/support/topic-tag/simplepie/)

 * 0 replies
 * 1 participant
 * Last reply from: [morecow](https://wordpress.org/support/users/morecow/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-simplepie-random-item-from-rss-feed/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
