<?php
/**
 * Template Name: Our Team Page
 *
 */
 ?>
<?php get_header(); ?>
 
   <div id="full-content" class="our-team-page">
		<section style="background: url('<?php echo home_url(); ?>/wp-content/uploads/2018/11/our-team-banner-bg.jpg')no-repeat center/cover;"  class="media-banner-bg">      					
	      <div class="container">
	          <h1 class="page-title-cus">OUR TEAM</h1>
	      </div>
	    </section>

	    <div class="container-fluid pl-0 pr-0">
	    	<div class="our-team-content-wrap">
				<!-- member conetnt -->
				<div class="row">
					<div class="col-lg-12 col-md-12">
						<ul class="clearfix our-team-content">
						<?php
								$the_query = new WP_Query( array(
								'post_type'=>'Team',
								'order'=> 'ASC',
								'paged' => get_query_var('paged') ? get_query_var('paged') : 1) 
								); 
								 while ($the_query -> have_posts()) : $the_query -> the_post(); 
							?>
			                          <li id="<?php the_title(); ?>" class="clearfix">
										<div class="container">
											<div class="our-team-img">
                                                <figure><?php the_post_thumbnail(); ?></figure>
												<!--<img src="<?php //echo get_field('our_team_detail_view_image'); ?>" />-->
											</div>
											<div class="our-team-description">
												<div class="our-team-title">
													<h2 class="our-team-title-h2"><?php the_title(); ?></h2>
													<h5><?php the_field('designation'); ?>   </h5>
												</div>
												<?php $content = get_the_content(); echo mb_strimwidth($content, 0, 450, '...');?>
												 <a href="<?php echo get_permalink( $post->ID ); ?>">Read More  &#10142;</a>
											</div>
										</div>
									</li>
									<?php endwhile; ?>                   
			                   
						
						</ul>
					</div>
				</div>
		    	
	    	</div>
	    </div>
	</div>
 
<?php get_footer(); ?>