<?php ob_start(); 
$query_args = array('post_type' => 'sh_faqs' , 'showposts' => $num , 'order_by' => $sort , 'order' => $order);

if( $cat ) $query_args['faqs_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 -->

							<div class="accordion">

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

									$active = ( $query->current_post == 0 ) ? ' active' : ''; ?>
								
									<div class="accordion-item wow fadeInDown<?php echo esc_attr($active); ?>">
										<h5 class="accordion-title uppercase h3">
											<a href="#">
												<span class="accordion-toggle fa fa-plus"></span>
												<?php the_title(); ?>
											</a>
										</h5>   <!-- / .accordion-title -->
										<div class="accordion-content">
											<div>
												<?php the_content(); ?>
											</div>
										</div>  <!-- / .accordion-content -->
									</div>  <!-- / .accordion-item  -->
								
								<?php endwhile; ?>								
								
							</div> <!-- / .accordion -->

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