Hi Again
I am customising a template as a way of learning.
I have been looking at and basing my customisations off of designbengel's seb_rotator.
For my search I have 4 results, however, I end up with the 4 results outputting for EACH result.
The key code in my index.php file is
$i = 0;
foreach ( $items as $pk => $item ) {
echo '<div class="item">';
echo $cck->renderPosition( 'mainbody' ); // I have tried $item->...
echo '</div>';
$i++;
}
In seb_rotator it is
$i = 0;
foreach ( $items as $pk => $item ) {
echo $item->renderPosition( 'element' );
i++;
}
Any tips on how to output the results only once each?
Thanks
Bucklash