Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active July 14, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/1ce8fc6d18de61383d360da214ba207c to your computer and use it in GitHub Desktop.
Save billerickson/1ce8fc6d18de61383d360da214ba207c to your computer and use it in GitHub Desktop.
<?php
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