Instantly share code, notes, and snippets.

@billerickson /functions.php Secret
Last active Jul 14, 2017

What would you like to do?
if( have_posts() ): while( have_posts() ): the_post();
global $wp_query;
$classes = ea_column_class( array( 'col-sm-6', 'col-md-4', 'col-lg-3' ), $wp_query->current_post );
echo '<div class="' . $classes . '">';
get_template_part( 'partials/archive', get_post_type() );
echo '</div>';
endwhile; endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment