<?php
/*
Template Name: Services Templete
*/

get_header(); ?>

<div class="container">
	<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
	<h2><?php the_title(); ?></h2>
    <?php the_content(); ?>
    <?php endwhile; wp_reset_query(); ?>
    
    <div class="services-page">
  <ul>
  
	  <?php $services = new WP_Query(array( 'post_type' => 'services', 'posts_per_page' => 4 )); ?>
      <?php while ($services->have_posts()) : $services->the_post(); ?>
  
  <li>
  	<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  </li>
  
  <?php endwhile; wp_reset_query(); ?>
  </ul>
  </div>
    
</div>


<?php get_footer();  ?>