<?php
 /**
 * Template Name: Services Grid Page
 *
 * @package WordPress
*/

get_header(); 




?>
<!-- main area start -->
    <main>
       
        <!-- page title end -->

        <!-- service start -->
		
		
		
		
        <section class="service pos-rel z-1 px-50 radius-20 gradient-bg-3  mb-25  pb-50 mt-25 pt-50">
            <div class="container-fluid">
                <div class="row g-14">
					<?php
global $query_string; 
query_posts($query_string . '&caller_get_posts=1&order=DSC');

$key = 1;

if (have_posts()) : while (have_posts()) : the_post();
	
	
	$image_thumb = '';
								
	if(has_post_thumbnail(get_the_ID(), 'swap-services_grid'))
	{
	    $image_id = get_post_thumbnail_id(get_the_ID());
	    $image_thumb = wp_get_attachment_image_src($image_id, 'swap-services', true);
				 $image_full = wp_get_attachment_image_src($image_id, 'full', true);

	}

	    
?>
                    <div class="col-xl-3 col-lg-6 pb-20">
                       <div class="mh-testimonial-item">
                                <div class="xb-item--image bg_img" data-cursor="-opaque">
								<img src="<?php echo $image_thumb[0]; ?>"></div>
                                <div class="xb-item--content">
                                    <h3 class="xb-item--name"><a href="<?php echo get_permalink( ); ?>"></a><?php echo the_title();?></h3>
                                    <!-- <p class="xb-item--desc">Therapy using music for healing..</p> -->
                                </div>
                                <div class="xb-item--video">
                                    <a href="<?php echo get_permalink( ); ?>" class="buttonview xb-element-parallax">
                                         More about
                                    </a>
                                </div>
                            </div>
                    </div>
                   
                    <?php $key++;  endwhile; endif; ?>	
                    
                    
                    
                   
                    
                    
                </div>
            </div>
        </section>
        <!-- service end -->


    </main>
    <!-- main area end -->



<?php get_footer(); ?>
