title: Wordpress customizing blog query
body: <p>I bought a template called Magazette.
  At index page this theme lists latest blog articles from all categories using the loop.</p>
  
  <pre><code>if ( have_posts() ) : 
     while ( have_posts() ) : the_post();
         get_template_part( 'templates/template-parts/content-blog', 'beauty' ); //prints posts
  </code></pre>
  
  <p>I want to list only articles from one specific category, and no I can't use category page.</p>
  
  <p>My solution was</p>
  
  <pre><code>while ( have_posts() ) : the_post();
      if(is_home() &amp;&amp; in_category('enjoy')){
          get_template_part( 'templates/template-parts/content-blog', 'beauty' ); //print posts
  </code></pre>
  
  <p>This was working. But I want to list 8 posts at 1 page. With this code it's printing random number of blog articles. It's just hiding the posts from another categories but counter for blog page max articles is still increasing because of the_post().</p>
  
  <p>Is there any way to fix this? I want to list only articles from specific category. It has to be 8 articles at 1 page. This is going to work only on the index page's blog part.         </p>