[Solved] How To Div Number’s ul into a loop?


So you open the outside the while loop but you keep closing it inside the while loop try this code:

echo '<ol>';
$i = 0;
while ( $cat_posts->have_posts() )
{
    $cat_posts->the_post();
?>
    <li><div class="a"><?php echo $i++ + 1; ?> </div>
        <a class="post-title" href="https://stackoverflow.com/questions/26014814/<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?> Apk Android Download"><font color="#000"><?php the_title(); ?></font></a>
    </li>
<?php } //end of the while loop ?>
    </ol>

4

solved How To Div Number’s ul into a loop?