<?php

/**

 Template Name: Who We Help Page

 */

?>

<?php get_header(); ?> 

<div class="wrap">
  <main id="genesis-content" class="full-content"> 
    <div class="listing-area service-area">
      <?php
    // TO SHOW THE PAGE CONTENTS
    while ( have_posts() ) : the_post(); ?>
      <header class="entry-header"><h1 class="entry-title"><?php the_title(); ?></h1></header>
      <div class="entry-content">
        <?php the_content(); ?>
        <!-- Page Content --> 
      </div>
      <!-- .entry-content-page -->
      
      <?php
    endwhile; //resetting the page loop
    wp_reset_query(); //resetting the page query
    ?>
	 
		 
      <?php                                        

 
				   $args = array( 'post_type' => 'who_we_help', 'posts_per_page' => 200, 'order' => 'ASC', 'paged' => $paged);                                        
 				   $wp_query = new WP_Query( $args );
 				   if ( have_posts() ) :
 				   while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
      <div class="board-box">
<div class="img-social"><div class="img-holder"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('service_thumb'); ?></a></div></div>
							<div class="details"><h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div>
         
      </div>
      <?php $counter++; if($counter%4 == 0) {
echo '<div style="clear: both;"></div>';
} ?>
      <?php endwhile; endif; wp_reset_query(); ?>
	   
    </div>
  </main>
</div>
<?php get_footer(); ?>
