Currently Exploring


First of all you need the Simplepie library. You only need the file included in the archive. My example extracts 5 items from a recipe blog: <div class="block"> <h2>Latest Culinary Recipes</h2> <div class="content"> <?php $feed = new SimplePie(‘’);?> <ul> <?php foreach ($feed->get_items(0, 5) as $item): ?> <li>&raquo; <a href="<?php print $item->get_permalink();?>"><?php print substr(($item->get_title()),0,23);?> [...]</a></li> [...]

As you’re getting used to it, I sometimes write a “Link Of The Day” or “Link Of The Week” article. Well, this week’s link is SimplePie. Recently updated to 1.1.1 “Blackberry” version, it is currently working on my cgGiant and Club Politica blogs. SimplePie is a very fast and easy-to-use class, written in PHP, that [...]