Function Reference/fetch rss
-
I am using the following Function Reference/fetch rss found in the codex. It works fine, right out of the box. I would like to limit the amount of entries it displays, does anybody know how to do that?
<?php require_once(ABSPATH . WPINC . '/rss.php'); ?> <?php $rss = fetch_rss('http://example.com/rss/feed/goes/here'); ?> <ul> <?php foreach ( $rss->items as $item ) : ?> <li><a href='<?php echo $item['link']; ?>' title='<?php echo $item['title']; ?>'> <?php echo $item['title']; ?> </a></li> <?php endforeach; ?> </ul>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Function Reference/fetch rss’ is closed to new replies.