<?php
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$args = array(
	'order' => 'asc',
	'orderby' => 'title',
	'category_name' => 'summer-resorts',
  	'posts_per_page' => 6,
  	'paged'          => $paged
);

$the_query = new WP_Query( $args ); 
?>

<!-- the loop -->
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<div class="postsbycategory-box">	
			<?php the_post_thumbnail('img-postsbycategory'); ?>

<div class="postsbycategory-overbox">
			<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
			<h4><?php
			$value = get_field( "feature_sub_title" );
			if( $value ) {
       		echo $value;
			} else {
		   echo '';
    
			}
			 ?></h4>
			
			
			<?php html5wp_excerpt('html5wp_index'); ?>
			
			<div class="overbox-linkbox">
			<a class="overbox-linkbox-button" href="<?php the_permalink(); ?>">Read more</a>
			</div>

</div>
</div>

	 <?php endwhile; ?>
