<?php ob_start(); 

$query_args = array('post_type' => 'sh_testimonials' , 'showposts' => $num , 'order_by' => $sort , 'order' => $order);

if( $cat ) $query_args['testimonials_category'] = $cat;

$query = new WP_Query($query_args) ;?>

							<header class="header-section style-2 wow fadeInDown" data-wow-duration="1.5s">
								<h2><?php echo balanceTags($title); ?></h2>
								<p><?php echo balanceTags($text); ?></p>
							</header> <!-- / .header-section -->


							<?php while( $query->have_posts() ): $query->the_post(); 

								$meta = _WSH()->get_meta(); ?>

								<div class="testimonial  wow fadeInDown">

									<div class="testimonial-content">
										<div class="testimonial-info">
											<h4 class="uppercase"><?php the_title(); ?>, <?php echo sh_set($meta, 'designation'); ?></h4>
											<small><?php echo get_the_date(); ?></small>
										</div>
										<?php echo _sh_trim(get_the_content(), $excerpt); ?>
									</div> <!-- / .testimonial-content -->

									<div class="testimonial-image">
										<?php the_post_thumbnail('thumbnail'); ?>
									</div> <!-- / .testimonial-image -->

								</div> <!-- / .testimonial -->
							
							<?php endwhile; ?>

							

<?php wp_reset_postdata();
return ob_get_clean();