title: WP_Query parameters not working?
body: <p>So I'm trying to get pagination correct for my wordpress site so categories and pages display the correct posts :</p>
  
  <pre><code>    wp_reset_query();
      $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
      $sticky = get_option( 'sticky_posts' );
      $args = array(
          'ignore_sticky_posts' =&gt; 1,
          'posts_per_page' =&gt; 10,
          'orderby' =&gt; 'date',
          'post__not_in'        =&gt; $sticky,
          'paged'               =&gt; $paged,
      );
      $query = new WP_Query( $args );
  
     ?&gt;
  
    &lt;?php if (have_posts()) : ?&gt;
  
  
    &lt;?php while (have_posts()) : the_post(); ?&gt;
  </code></pre>
  
  <p>I get the posts to display but the following parameters :</p>
  
  <pre><code>'ignore_sticky_posts' =&gt; 1,
              'posts_per_page' =&gt; 10,
              'orderby' =&gt; 'date',
              'post__not_in'        =&gt; $sticky,
  </code></pre>
  
  <p>does not seem to work... any idea why ?</p>