'post', 'post_status' => 'publish', 'paged' => $paged, 'posts_per_page' => $postperpage, 'ignore_sticky_posts' => 1, ); if ($pt_category) { $blog_args['category__in'] = $pt_category; } $blog = new WP_Query( $blog_args ); if ( $blog->have_posts() ) : advantage_content_nav_link( $blog->max_num_pages, 'nav-above' ); $col = 0; while ( $blog->have_posts() ) { $blog->the_post(); if ( $column > 1 && 0 == $col ) echo '
'; $div_class = ''; if ($column == 2) { $div_class = "large-6 columns"; $col = $col + 1; if ($col == 2) $col = 0; } elseif ($column == 3) { $div_class = "large-4 columns"; $col = $col + 1; if ($col == 3) $col = 0; } elseif ($column == 4) { $div_class = "large-3 columns"; $col = $col + 1; if ($col == 4) $col = 0; } if ($column > 1) echo '
'; get_template_part( 'content', 'summary' ); if ($column > 1) { echo '
'; if ($col == 0) echo '
'; } } if ( $col > 0 ) echo '