I want to split the loop into two, but I can't figure it out!
I want to first create three elements from an array, and then display the remaining elements like this,
01 Home
02 Portfolio
03 Blog
{my website logo}
04 About
05 Contact
06 Feed
This is the code I'm stuck in
<?php
$index = 0;
foreach($items as $item)
{
?>
<li>0<?php echo $index+1;?><a href="#"><?php echo $item['name'];?></a></li>
<?php
$index ++;
}
?>
Any ideas?
Thank.
source
share