Skip to content

Commit

Permalink
oops, set the counter before we start the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
aschweigert committed Aug 23, 2016
1 parent 47d3166 commit a2fc478
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions archive.php
Expand Up @@ -105,9 +105,8 @@
<?php
// and finally wind the posts back so we can go through the loop as usual
rewind_posts();

$counter = 1;
while ( have_posts() ) : the_post();
$counter = 1;
$post_type = get_post_type();
$partial = largo_get_partial_by_post_type( 'archive', $post_type, 'archive' );
get_template_part( 'partials/content', $partial );
Expand Down

0 comments on commit a2fc478

Please sign in to comment.