This is all sorts of wrong. First don’t use start_wp();
I think that was depreciated 4 years ago. Second your loop is messy, query_posts
is for altering the main loop, aka not get_posts
.
So just write it normally using get_posts
or WP Query
.
$args = array( 'numberposts' => 1,
'offset'=> 0,
'category_name' => 'carrs, dominicks, genuardis, etc',
);
$the_query = new WP_Query( $args );
while ( $the_query->have_posts() ) : $the_query->the_post();
$count_posts = $the_query->current_post + 1; // use this to count your posts
//your loop stuff
endwhile;
In not sure how you want your pagination to work, if you just want next/previous links use <?php previous_post(); ?> <?php next_post(); ?>
for true numbered pagination I recommend a plugin like WP-PageNavi or WP-Paginate that easily integrated into your theme through a function.
http://codex.wordpress.org/Class_Reference/WP_Query
http://codex.wordpress.org/Next_and_Previous_Links