} else { $query_args['posts_per_page'] = -1; } if (!empty($terms)) { $query_args['tax_query'] = array(array('taxonomy' => $taxonomy, 'field' => 'term_id', 'terms' => $terms)); } // Use the processed post selector query to find posts. $loop = new WP_Query($query_args); // Loop through the posts and do something with them. if ($loop->have_posts()) { ?> <div class="lsow-portfolio-wrap lsow-container"> <?php $column_style = lsow_get_column_class(intval($settings['per_line'])); ?> <?php if ($settings['packed'] || $settings['layout_mode'] == 'masonry') { ?> <?php $column_style = $column_style . ' lsow-zero-margin'; ?> <?php } ?> <div class="lsow-portfolio-header">
<?php /** * @var $clients */ ?> <?php $num_of_columns = intval($settings['per_line']); ?> <?php $column_style = lsow_get_column_class($num_of_columns); ?> <div class="lsow-clients lsow-container"> <?php $column_count = 0; ?> <?php foreach ($clients as $client) { ?> <?php $column_count % $num_of_columns == 0 ? ' lsow-last-row' : ''; ?> <div class="lsow-client <?php echo $column_style;