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

<!--Project Section Two-->
<section class="project-section-two">
    <div class="auto-container">
        <!--Sec Title-->
        <div class="sec-title">
            <h2><?php echo wp_kses_post($title); ?></h2>
        </div>
    </div>
    <div class="four-item-carousel owl-carousel owl-theme">
    	<?php while($query->have_posts()): $query->the_post();
			global $post ; 
			$project_meta = _WSH()->get_meta();
		?>
        <!--Gallery Item Two-->
        <div class="gallery-item-two">
            <div class="inner-box">
                <div class="image">
                    <?php the_post_thumbnail('manufacto_480x300'); ?>
                    <div class="caption-box">
                        <h3><a href="<?php echo esc_url(get_permalink(get_the_id()));?>"><?php the_title(); ?></a></h3>
                        <?php $term_list = wp_get_post_terms(get_the_id(), 'projects_category', array("fields" => "names")); ?>
						<div class="category"><?php echo implode( ', ', (array)$term_list );?></div>
                    </div>
                </div>
            </div>
        </div>
        <?php endwhile;?>
    </div>
</section>
<!--End Project Section Two-->

<?php endif; wp_reset_postdata(); ?>