<?php
/**
* Template Name: Team Page
 * @package
 * @subpackage
 * @since
 *
 */
get_header();
?>
<div class="team-wrapper">
	<div class="container">
		<div class="row">
			<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 team-page">
			<header class="entry-header margin-top-title">
				<h1 class="entry-title"><?php echo the_title(); ?></h1>	
			</header>
				<?php 
					$args = [
					'post_type'=>'team',
					'posts_per_page'=>-1,
					'post_status' =>'publish',
					'order' => 'ASC'
					];
						$team = new WP_Query($args);
						if($team->have_posts()){ ?>
						<?php
							while($team->have_posts()){
								$team->the_post();
						?>
						<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 team-section">
							<div class="col-lg-4 col-sm-4 col-md-4 col-xs-12 team-image">
								<?php the_post_thumbnail('full', array('class'=>'img-responsive') ); ?>
							</div>
							<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 team-text">
								<h4><?php the_title(); ?> </h4>
								<span><?php echo the_field('designation_or_others');?> </span>
								<?php the_content();	?>
							</div>
						</div>
						<?php }
						}
						wp_reset_query();
						?>
			</div>
		</div>
	</div>
</div>













<?php get_footer(); ?>