WordPress.org

Ready to get started?Download WordPress

Forums

Nested Loop (1 post)

  1. sedeek2
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags