Plugin Directory

JP's Get RSS Feed

Get last X number of posts from a selected RSS feed.

How do I use the plugin?

<?php jp_get_rss_feed_items("My feed URL", 10); ?>

will return the last ten items from "My feed URL".

<?php jp_get_rss_feed_items("My feed URL"); ?>

will return the last five items.

How can I list from multiple feeds?

Use an array and a foreach loop:

<?php
// create array
$feedslist = array(
"My feed URL number one",
"My feed URL number two",
"My feed URL number three"
);
// loop through array and call plugin
foreach ($feedslist as $item) {
 jp_get_rss_feed_items($item)
}
?>

This will list the items group from each feed in its own unordered list.

How can I list items from a random feed?

Use an array:

<?php
// create array
$feedslist = array(
"My feed URL number one",
"My feed URL number two",
"My feed URL number three"
);
// get random index from array member
$item = array_rand($feedslist, 1);
// pass randomly selected item to plugin
 jp_get_rss_feed_items($feedslist[$item])
}
?>

This selects one member randomly and passes it to the plugin.

Requires: 2.9 or higher
Compatible up to: 3.0.5
Last Updated: 2010-12-21
Downloads: 1,040

Average Rating

0 stars
(0 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

0,1,0
0,2,0
0,1,0