I need help in styling the first post differently than the rest. What makes this differently is that I'm using this get_template_part in order for infinite scroll to work on my site.
This is what I use on index.php
<?php while (have_posts()) : the_post(); get_template_part( 'content', get_post_format() ); endwhile; ?>
which will load the loop from content.php. This was my old loop:
<?php if (have_posts()) : ?> <?php $post = $posts; $c=0;?> <?php while (have_posts()) : the_post(); ?> <?php $c++; if( !$paged && $c == 1) :?> <-! first post --> <?php else :?> <-! the rest --> <?php endif;?> <?php endwhile; ?> <?php endif; ?>
Thanks for the help.