<?php
$count = 1;
if (have_posts()) : while(have_posts()): the_post(); ?>
layout of regular template file here
<?php $count++;
endwhile; endif; ?>
<?php if((preg_match('/\/2\//',$_SERVER['REQUEST_URI']))) {
$count = 51;
} elseif((preg_match('/\/3\//',$_SERVER['REQUEST_URI']))) {
$count = 101;
} else {
$count = 1;
} ?>
Can anyone tell me how to tell this to keep track of the count once it hits page 2,3,etc..? Looking around, I was able to find this but it doesn’t work..