$items = $rss->get_items(0, 1);
// items is now the array of results
// access only the first one
$href = $items[0]['link'];
$title = $items[0]['title'];
// etc
?>
Or
Set a counter in case you ever want to change that number from 1 to 2.
$ctr=0; // set a counter to 0
$target = 1 // set a target number, initially in your case: 1
foreach ($rss->get_items(0, 1) as $item){
if( $ctr < $target ) { // if the counter is less that your target, go ahead
$href = $item['link'];
$title = $item['title'];
//$desc = $item['description'];
echo "<p><a href=$href>$title</a></p>";
if($desc)
echo $desc;
}
$ctr++; // iterate the counter
}
?>
That is not particularly efficient or well written, but should suffice to show you how to limit your array iterations.
You could also use a while ($ctr < $target) loop for example.