title: Make a Blog Template page on underscore.me with wordpress
body: <p>i am trying to personalize a new theme made in underscore.me, but i can't seem to create a new template page with a loop that can show me posts of one specific category, how can i do this? </p>
  
  <p>I'm gonna paste here the index.php of the underscore.me theme, witch has a generic loop, sadly, copying and pasting this loop on a template page does</p>
  
  
  
  <pre><code>&lt;div id="primary" class="content-area"&gt;
      &lt;main id="main" class="site-main" role="main"&gt;
  
      &lt;?php if ( have_posts() ) : ?&gt;
  
          &lt;?php if ( is_home() &amp;&amp; ! is_front_page() ) : ?&gt;
              &lt;header&gt;
                  &lt;h1 class="page-title screen-reader-text"&gt;&lt;?php single_post_title(); ?&gt;&lt;/h1&gt;
              &lt;/header&gt;
          &lt;?php endif; ?&gt;
  
          &lt;?php /* Start the Loop */ ?&gt;
          &lt;?php while ( have_posts() ) : the_post(); ?&gt;
  
              &lt;?php
  
                  /*
                   * Include the Post-Format-specific template for the content.
                   * If you want to override this in a child theme, then include a file
                   * called content-___.php (where ___ is the Post Format name) and that will be used instead.
                   */
                  get_template_part( 'template-parts/content', get_post_format() );
              ?&gt;
  
          &lt;?php endwhile; ?&gt;
  
          &lt;?php the_posts_navigation(); ?&gt;
  
      &lt;?php else : ?&gt;
  
          &lt;?php get_template_part( 'template-parts/content', 'none' ); ?&gt;
  
      &lt;?php endif; ?&gt;
  
      &lt;/main&gt;&lt;!-- #main --&gt;
  &lt;/div&gt;&lt;!-- #primary --&gt;
  </code></pre>
  
  
  
  
  <p>And this is the page.php.</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( 'template-parts/content', 'page' ); ?&gt;
  
              &lt;?php
                  // If comments are open or we have at least one comment, load up the comment template.
                  if ( comments_open() || get_comments_number() ) :
                      comments_template();
                  endif;
              ?&gt;
  
          &lt;?php endwhile; // End of the loop. ?&gt;
  
      &lt;/main&gt;&lt;!-- #main --&gt;
  &lt;/div&gt;&lt;!-- #primary --&gt;
  </code></pre>