<?php
/*
Template Name: Alumni Template
*/
?>

<?php get_header(); ?>
<section class="programs">
  <div class="container">


            <div class="program-content-top">
                <h2 class="about-inner-main wow zoomIn">Alumni</h2>
                <?php
if ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<p id="breadcrumbs wow zoomIn" class="text-center text-white">','</p>' );
}
?>
            </div>

    



    
  </div>
</section> 
<?php the_content();  
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
 
 
    // define query parameters based on attributes
    $options = array(
        'post_type' => 'alumni',
        'order' => 'desc',
        'orderby' => 'date',
        'posts_per_page' => 12, 
		'paged' => $paged,
    );
    $query = new WP_Query( $options );
    // run  the loop based on the query ?> 
    <section class="meet-Instructors">
  <div class="container">
            <div class="instructor-content-div row">
     <?php 
	$posts = 0;
	while ( $query->have_posts() ) : $query->the_post(); ?>	
	<div class="col-md-3 col-sm-12 wow zoomInDown">
                  <div class="founder-card-outer">
                      <div class="founder-image-div">
                          <?php 
                                $feat_image = wp_get_attachment_url(get_post_thumbnail_id(get_the_id())); 
                                
                            ?>
                          <img class="w-100 founder-image" src="<?php  echo $feat_image; ?>" alt="">
                           </div>

                      <div class="founder-content-div">
                          <h4 class="founder-name"><?php the_title(); ?></h4>
                          <p class="founder-pra"><?php the_excerpt(); ?></p>
                      </div>
                      </div>
                      </div>
	<?php   endwhile; ?>
	
 
		<?php 
	 echo '<div class="pagination">';
    echo paginate_links(array(
        'total' => $query->max_num_pages,
        'prev_text' => 'Previous',
        'next_text' => 'Next',
    ));
    echo '</div>';
     ?>
</div> 
   </div>           
</section>  
<?php get_footer(); ?>
