<?php
$postlist = get_posts( 
	'orderby'=> 'title'
	'sort_order' => 'asc'
	 
	);
$posts = array(
	'tag' => 'family-resort'
	);
foreach ( $postlist as $post ) {
   $posts[] += $post->ID;
}

$current = array_search( get_the_ID(), $posts );
$prevID = $posts[$current-1];
$nextID = $posts[$current+1];
?>

<div class="navigation">
<?php if ( !empty( $prevID ) ): ?>
<div class="alignleft">
<a href="<?php echo get_permalink( $prevID ); ?>"
  title="<?php echo get_the_title( $prevID ); ?>">Previous</a>
</div>
<?php endif;
if ( !empty( $nextID ) ): ?>
<div class="alignright">
<a href="<?php echo get_permalink( $nextID ); ?>" 
 title="<?php echo get_the_title( $nextID ); ?>">Next</a>
</div>
<?php endif; ?>
</div><!-- .navigation -->
<!-- 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() ?>"><?php echo get_post_meta( $post->ID, 'ip_name', true ) ; ?></a></h3>
			
			<h4><?php echo get_post_meta( $post->ID, 'ip_domain_name', true ) ; ?></h4>
			
			<?php html5wp_excerpt('html5wp_index'); ?>
			
			<div class="read-more-container">
			<div class="read-more">
			<a href="<?php the_permalink(); ?>">Read More</a>
			</div>
			</div>

</div>
</div>

	 <?php endwhile; ?>
<?php