Ok I need help.
I have the following code in Wordpress
<?php
require_once (ABSPATH . WPINC . '/rss-functions.php');
// here's where to insert the feed address
$rss =
@fetch_rss('http://alpha.libre.fm/rdf.php?fmt=rss&page=/user/bananabob/recent-tracks');
if ( isset($rss->items) && 0 != count($rss->items) ) {
?>
<ul>
<?php
// here's (5) where to set the number of headlines
$rss->items = array_slice($rss->items, 0, 5);
foreach ($rss->items as $item ) {
?>
<li>
<a href='<?php echo wp_filter_kses($item['link']); ?>'>
<?php echo wp_specialchars($item['title']); ?>
</a>
</li>
<?php } ?>
</ul>
<?php } ?>
I get nothing. However if I change the URL to my old last.fm feed
http://ws.audioscrobbler.com/1.0/user/bananabob/recenttracks.rss
I get some tracks.
Why does this code not work with the libre.fm RSS feed?
Cheers
James
_______________________________________________
Libre-fm mailing list
[email protected]
http://lists.autonomo.us/mailman/listinfo/libre-fm