<?php 

/**

* Template Name: Team

* 

* @package WP_Corporate

*/



get_header();



 $parents = get_post_ancestors( $post->ID ); $parentName=apply_filters( "the_title", get_the_title( end ( $parents ) ) ); $parentUrl=apply_filters( "page_link", get_page_link( end ( $parents ) ) ); ?>
<!-- Font Awesome -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

<!--header class="page-header">

	<?php the_title( '<h1 class="page-title">', '</h1>' ); ?>



</header><!-- .page-header -->
<div id="coverBlock">
				

<div class="ed-container">

    <h1><?php the_title();?></h1>

<p class="newAmps-crumb"><a href="<?php echo get_site_url();?>">Home</a><span class="fa fa-chevron-right"></span><?php if(get_the_title($post->ID)!=='Contact Us'){ echo '<a href="#">'.$parentName.'</a><span class="fa fa-chevron-right"></span>'; } ?><a href="#"><?php the_title();?></a></p>

</div>

    </div>



<div class="ed-container testimonial grid" style="
   padding-top: 80px;
   ">
   <div id="primary" class="content-area">

				<main id="main" class="site-main" role="main">

<?php
					// setup the cateogory ID
					$cat_id= $post->post_content;
					// create a custom wordpress query
					query_posts("cat=$cat_id&posts_per_page=100");
					// start the wordpress loop!
					if (have_posts()) : while (have_posts()) : the_post(); ?>
                                    
<article id="post-<?php the_ID(); ?>" class="post-<?php the_ID(); ?> post type-post status-publish format-standard has-post-thumbnail hentry category-testimonial">
    <header class="entry-header">
       <figure>
          <img src="<?php the_post_thumbnail_url('wp-corporate-fullwidth-image'); ?>" alt="<?php the_title(); ?>">
       </figure>
       <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    </header>
    <!-- .entry-header -->
    <div class="entry-content">
       <div class="content-text">
          <?php the_excerpt(); ?>
          <a class="arhive-readmore ed-bttn" href="<?php the_permalink(); ?>">Read More</a>
       </div>
    </div>
    <!-- .entry-content -->
 </article>
                <?php endwhile; endif; // done our wordpress loop. Will start again for each category ?>
                                                        
						

				</main><!-- #main -->

			

			</div><!-- #primary -->

	

</div>

<?php get_footer();

