I’ve tried this method and it doesn’t seem to be working for me it keeps outputting the same class on all the div’s
the only thing I can think for it doing this is becuase I am already using the counter to display different styles for the first post, then for the next 7 and then for all the rest. but for the 7 (after the first post) I want to display alternative classes so they align perfectly on the screen.
this is what I use now
<?php $c =0;
if (have_posts()) : while (have_posts()) : the_post();
$c++;?>
<?php if( ($c == 1) && !is_paged(page) ) :?>
//FEATURED POST MARKUP
<?php elseif (($c = 7) && !is_paged(page)) :?>
//HOME PAGE POST DISPLAY MARK UP, UP TO 7 POSTS ($c = 7) IS WHERE I PUT THE AMOUNT OF POSTS I WANTED TO DISPLAY ON THE HOME PAGE.
/// BUT I want the 7 that display here to have alternative classes?
<?php else :?>
// MARK UP FOR ALL OTHER PAGES
<?php endif;?>
<?php endwhile; ?>
any help would be much appreciated thanks in advanced