I am trying to customize the category template whereby I wish to show the ordered list of 10 posts on each page. I am using the following code in the loop:
<?php $counter = 1; while(have_posts()) : the_post(); ?> <div class="entry"> <?php echo $counter++; the_excerpt(''); ?> </div> <?php endwhile; ?>
On the first page: it shows the excerpts arranged in a 1 to 10 ordered list, but on the second page (using wp-pagenavi), it again starts from 1. Is there any way that all the posts of a category can be shown in a consistent ordered list from post 1 to last post.