title: Wordpress posts during the main loop
body: <p>While wordpress is doing the main loop, how does it determine which post belongs to the current page?</p>
  
  <pre><code>&lt;?php while ( have_posts() ) : the_post(); ?&gt;
  
      &lt;?php
          get_template_part( 'template-parts/content', get_post_format() );
      ?&gt;
  
  &lt;?php endwhile; ?&gt;
  </code></pre>
  
  <p>In the above example, how does WordPress determine which post will be looped over?</p>
  
  <p>Will the loop go through all the posts?</p>