<?php
$query_args = array( 'post_type' => 'bunch_testimonials' , 'showposts' => $num , 'order_by' => $sort , 'order' => $order );
if( $cat ) $query_args['testimonials_category'] = $cat;
$query = new WP_Query($query_args) ; 
?>
<?php if( $query->have_posts() ) :  ?>


<!--Testimonial Page Section-->
<section class="testimonial-page-section">
	<div class="auto-container">
		<div class="masonry-items-container row clearfix">

			<?php
			while( $query->have_posts() ): $query->the_post();
			$testimonial_meta = _WSH()->get_meta();
			$state = buildark_set( $testimonial_meta, 'state' );
			?>
			
				<!--Testimonial Block Two-->
				<div class="testimonial-block-four masonry-item col-lg-3 col-md-4 col-sm-6 col-xs-12">
					<div class="inner-box">
						<div class="image">
							<?php the_post_thumbnail( 'buildark_80x80', array( 'class' => 'img-responsive' ) ); ?>
						</div>
						<div class="text"><?php echo wp_trim_words( get_the_content(), $text_limit ); ?></div>
                        <h2><?php the_title(); ?></h2>
						<div class="location"><?php echo wp_kses_post( $state ); ?></div>
					</div>
				</div>
				
			<?php endwhile; ?>

		</div>

	</div>
</section>
<!--End Testimonial Section Two-->




<?php endif;
wp_reset_postdata();