Answers for "get index number wordpress loop"

PHP
0

get post index wordpress

<?php $i = 0; while ( have_posts() ) : the_post(); ?>
  <?php
	//do something
  $i++;
  ?>
<?php endwhile; ?>
Posted by: Guest on November-18-2020
0

get index number wordpress loop

$index_query->current_post;
Posted by: Guest on December-22-2020
0

get index number wordpress loop

$index_query->post->current_post;
Posted by: Guest on December-22-2020

Browse Popular Code Answers by Language