title: Pagination showing same posts from page 1 on all other pages
body: <p>I've recently had a lot of help creating an upcoming events list (see here <a href="https://stackoverflow.com/questions/17343615/showing-upcoming-events-including-todays-event">Showing upcoming events (including todays event)?</a>), as a result my pagination using WP Pagenavi is broken. </p>
  
  <p>At the moment, when you click on page 2 it just shows the same posts as page one. Although the URL does actually change to page/2 page/3 etc.</p>
  
  <p>I have this in my functions.php file:</p>
  
  <pre><code>function filter_where( $where = '' ) {
      $where .= " AND post_date &gt;= '" . date("Y-m-d") . "'";
      return $where;
  }
  
  add_filter( 'posts_where', 'filter_where' );
  
  $query = new WP_Query(
      array(
          'post__not_in' =&gt; array(4269),
          'paged' =&gt; get_query_var('paged'),
          'post_type' =&gt; 'whatson',
          'exclude' =&gt; '4269',
          'post_status' =&gt; 'future,publish',
          'posts_per_page' =&gt; 20,
          'order' =&gt; 'ASC'
      )
  );
  
  remove_filter( 'posts_where', 'filter_where' );
  </code></pre>
  
  <p>My loop is then as follows:</p>
  
  <pre><code>&lt;?php while ( $query-&gt;have_posts() ) : $query-&gt;the_post(); ?&gt;
  // content
  &lt;?php endwhile; // end of the loop.  ?&gt;
  &lt;?php if (function_exists('wp_pagenavi')) { wp_pagenavi( array( 'query' =&gt; $query ) ); } ?&gt;
  </code></pre>