RSS FEED
‘;
printf(__(‘RSS Error: %s’), $rss->get_error_message());
echo ‘
‘;
}
return;
}
if ( !$rss->get_item_quantity() ) {
echo ‘
Apparently, there is nothing happening on Reddit!
‘;
$rss->__destruct();
unset($rss);
return;
}
echo «
- \n »;
- $link – $content
if ( !isset($items) )
$items = 10;
foreach ( $rss->get_items(0, $items) as $item ) {
$publisher = »;
$site_link = »;
$link = »;
$content = »;
$date = »;
$link = esc_url( strip_tags( $item->get_link() ) );
$content = $item->get_content();
$content = wp_html_excerpt($content, 250) . ‘ …’;
echo « \t
\n »;
}
echo «
\n »;
$rss->__destruct();
unset($rss);
?>
Commentaires récents