title: Next/Prev links not working on Wordpress pagination
body: <p>I have a static front page on my wordpress site and am trying to get pagination working.</p>
  
  <p>The pagination actually works if I manually go to the address (/2/, /3/ etc) but the next_posts_link and previous_posts_links don't work at all.</p>
  
  <p>Could anyone pinpoint what my error is here?</p>
  
     
  
  <pre><code>        &lt;?php $args = array(
              'posts_per_page' =&gt; 10,
              'ignore_sticky_posts'=&gt; 1,
              'category__in'=&gt; $cat,
              'paged' =&gt; $paged,
              );
  
          $featured_query = new WP_Query($args);
  
          while ($featured_query-&gt;have_posts()) : $featured_query-&gt;the_post();
          ?&gt;
  
             &lt;?php get_template_part( 'template-parts/content', get_post_format() ); ?&gt;
  
          &lt;?php endwhile;?&gt;
          &lt;?php wp_reset_postdata(); ?&gt;
              &lt;div class="nav-previous alignleft"&gt;&lt;?php next_posts_link( 'Older posts', $featured_query-&gt;max_num_pages ); ?&gt;&lt;/div&gt;
  
              &lt;?php if(is_paged()) { ?&gt; 
              &lt;div class="nav-next alignright"&gt;&lt;?php previous_posts_link( 'Newer posts', $featured_query-&gt;max_num_pages ); } ?&gt;&lt;/div&gt;
  </code></pre>