title: No paged query var being set in WordPress custom pagination
body: <p>I have everything set up fine I just need to finish the pagination. This method is the same as I have done before but for some reason it is now having issues.</p>
  
  <p>I am using the standard 'posts' post type and getting all posts (1 per page like this)</p>
  
  <pre><code>$pageNumber = ( get_query_var('paged') ? get_query_var('paged') : 1 );
  
  $posts = new WP_Query([
     'post_type' =&gt; 'post',
     'posts_per_page' =&gt; 1,
     'paged' =&gt; $pageNumber
  ]);
  </code></pre>
  
  <p>This does what I need but $pageNumber is always 1.</p>
  
  <p>When doing a check on the query var for paged:</p>
  
  <pre><code>if (get_query_var('paged')) {
      echo "paged:" . get_query_var('paged');
  } else {
      echo "no paged set";
  }
  </code></pre>
  
  <p>It will always say no paged set.</p>
  
  <p>In my pagination the link I am using for paged links is:</p>
  
  <pre><code>domain.com/blog/page/2
  </code></pre>
  
  <p>This returns the correct page and doesn't 404, but the page is not being picked up.</p>
  
  <p>Any ideas why? </p>