You aren’t ending your while
before doing your else
:
$args = array( 'post_type' => 'members_features', 'posts_per_page' => 6 );
$the_query = new WP_Query( $args );
?>
<? if ( $the_query->have_posts() ) : ?>
<? while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<h2><? the_title(); ?></h2>
<div class="entry-content">
<? the_content(); ?>
</div>
<? wp_reset_postdata(); ?>
<?php /** no endwhile! **/
<? else: ?>
<p><? _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<? endif; ?>
It’s easier to see the issue without the HMTL:
$args = array( 'post_type' => 'members_features', 'posts_per_page' => 6 );
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) :
$the_query->the_post();
the_title();
the_content();
wp_reset_postdata();
else:
_e( 'Sorry, no posts matched your criteria.' );
endif;