title: Wordpress Custom pages
body: <p>I want to load all my custom pages on front-page by using the function get_template_part(); but whenever I save my code the page loads everything on front-page but is keeps on looping the content over and over and over again on the site. </p>
  
  <pre><code>&lt;div id="primary" class="content-area"&gt;
      &lt;main id="main" class="site-main" role="main"&gt;
  
              &lt;?php while (have_posts()) : the_post(); ?&gt;
                  &lt;?php get_template_part('templates/header'); ?&gt;
                  &lt;?php get_template_part('templates/page-about'); ?&gt;
                  &lt;?php get_template_part('templates/page-services'); ?&gt;
                  &lt;?php get_template_part('templates/page-portfolio'); ?&gt;
                  &lt;?php get_template_part('templates/page-contact'); ?&gt;
                  &lt;?php get_template_part('templates/footer'); ?&gt;
              &lt;?php endwhile; ?&gt;
  
      &lt;/main&gt;&lt;!-- #main --&gt;
  &lt;/div&gt;&lt;!-- #primary --&gt;
  </code></pre>
  
  <p>I'm also going to upload it to github <a href="https://github.com/brandonpowell/Test-Wordpress-Site/tree/master/danielschriersite" rel="nofollow">https://github.com/brandonpowell/Test-Wordpress-Site/tree/master/danielschriersite</a></p>