<?php get_template_part('template/header'); ?>
<div class="section">
		<div class="row">

				<div class="small-12 large-6 large-offset-3 columns">
					<div class="intro-text">
						<h1 class="title"><?php wp_title('') ?></h1>
						<?php the_field('intro'); ?>
					</div>
				</div>

						 <?php
						// the query
						$wpb_all_query = new WP_Query(array('post_type'=>'post', 'post_status'=>'publish')); ?>

						<?php if ( $wpb_all_query->have_posts() ) : ?>

						    <!-- the loop -->
						    <?php while ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post(); ?>

 									 <div class="small-12 columns">

										 <div class="intro-post">
 											 <div class="post-content">
												  <div class="post-info">
														 <div class="row">
															 <div class="small-12 large-3 columns">

				 													  <div class="date"><?php echo get_the_date(); ?></div>
																		<div class="thumb">
																			<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('post-list'); ?></a>
																		</div>
				 													</div>


															<div class="small-12 large-9 columns">
			 												 <h5><?php the_title(); ?></h5>
															 <?php the_excerpt(); ?>
														 </div>
													</div>
 											 	</div>
 										 	</div>
 									 	</div>
									</div>


					    <?php endwhile; ?>
					    <!-- end of the loop -->
								<div class="small-12 columns">
									<?php numeric_posts_nav(); ?>
								</div>
						</div>
					    <?php wp_reset_postdata(); ?>

							<?php else : ?>
							    <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
							<?php endif; ?>



				</div>
			</div>

	<?php get_template_part('template/footer');
