<?php
/* Template Name: Testimonial*/  

get_header(); 
global $variable ;
while ( have_posts() ) : the_post(); 
$feat_image_slider_list = wp_get_attachment_url( get_post_thumbnail_id(get_the_ID()) ); 
?>
<section class="testimonial-sec sec-padding">
  <div class="container">
    <div class="row">
         <?php 
           		 $k=1;
                $service_list = array( 'post_type' => array('testimonials_list'), 'order_by' => 'id', 'order' => 'ASC', 'posts_per_page'   => -1 );
                      $posts_service_list =  get_posts( $service_list );
        
                foreach( $posts_service_list as $servicesnew_list)                      
                { 
        
                    $feat_image_service_list = wp_get_attachment_url( get_post_thumbnail_id($servicesnew_list->ID) ); 
                ?>
        
                    <div class="col-md-6">
                    <div class="testimonial-sec-content">
                      <p><?php  echo get_post_field('post_content',$servicesnew_list->ID); ?></p>
                      <div class="d-flex">
                        <div class="client">
                          <img src="<?php echo $feat_image_service_list; ?>">
                        </div>
                        <div class="client-detail">
                          <h2><?php  echo get_post_field('post_title',$servicesnew_list->ID); ?></h2>
                          <p><?php echo get_field('client_designation',$servicesnew_list->ID);?></p>
                        </div>
                      </div>
                    </div>
                  </div>
        <?php } ?>
    </div>
  </div>
</section>
<?php 
endwhile;
get_footer();?>