Nested Loop
-
Hi, i want help to convert this block of statments to wp loop
`<?php
$i = 0;
while ( $i <= 4 )
{
echo ‘<div class=”slide2″>’;
for ($j=1;$j<=6;$j++)
{
echo ‘<div class=”p’.$j.'”></div>’;
}
echo ‘</div>’;
$i++;
}
?>the result of previouse code like this :
http://s23.postimage.org/qre5jhkbv/4bd8fb42_78f2_40b4_a1e2_b9f7bc72d7db.png
any help please
- The topic ‘Nested Loop’ is closed to new replies.