wordpress post index code example
Example: get post index wordpress
<?php $i = 0; while ( have_posts() ) : the_post(); ?>
<?php
//do something
$i++;
?>
<?php endwhile; ?>
<?php $i = 0; while ( have_posts() ) : the_post(); ?>
<?php
//do something
$i++;
?>
<?php endwhile; ?>