1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

 <div id="container">
   <?php the_content(); ?>
 </div>

 
 <?php endwhile; else: ?>

 <!-- The very first "if" tested to see if there were any Posts to -->
 <!-- display.  This "else" part tells what do if there weren't any. -->
 <p>Sorry, no posts matched your criteria.</p>

 <!-- REALLY stop The Loop. -->
 <?php endif; ?>