This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// $the_query would just be a standard WP_Query | |
if ( $the_query->have_posts() ) : | |
$counter = 1; | |
while ( $the_query->have_posts() ) : $the_query->the_post(); | |
if ( $counter % columns == 1 ) { | |
// do something at the start of your 'row' |