title: help simplify if while list loop in wordpress
body: <pre><code>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
  ....
  &lt;?php endwhile; endif; ?&gt;
  </code></pre>
  
  <p>could understand the code on the above well.</p>
  
  <p>1, could i delete the if and while condition? using <code>&lt;?php the_post();?&gt;</code> directly.</p>
  
  <p>2, i feel the <code>if (have_posts())</code> is the same as the <code>while (have_posts())</code> .is it  redundance?</p>