title: wp_pagenavi wont work using custom post per page
body: <p>I have the wp-navi plug in working smoothly on any category that uses the global reading config (post per page "3"), but i have one category that i only need to show 1 per page, setting this value manually outside the loop destroys my paged links, it generates a lot of pages (instead of two, since i only have two posts) and they take to the home ( i guess is some sort of 404), i've tried with as many solutions i could find in stackoverflow and google, and no luck yet, i've been using wp for a couple weeks so im not sure if im doing something really stupid here, so please help me out.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;?php
      $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
  
      //query 1 post
      query_posts("posts_per_page=1&amp;paged=$paged");       
  ?&gt;
  &lt;?php while(have_posts()) : the_post(); ?&gt;
      &lt;div class="entry"&gt; 
          &lt;div class="single_entry"&gt;
              &lt;p&gt;
                  &lt;?php the_content(); ?&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
              &lt;/p&gt;
              &lt;?=get_social(); ?&gt;
              &lt;div class="clear"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;?php endwhile; ?&gt;
  &lt;?php if(function_exists('wp_pagenavi')) { ?&gt;
      &lt;div id="pagination"&gt;
          &lt;?php wp_pagenavi(); ?&gt; 
      &lt;/div&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>Thanks in advance =).</p>
  
  <p><strong>EDIT:</strong> 
  I found something interesting, if i set the <code>&amp;paged=2</code> it actually shows the second page, and the page-navi says "page 2 of 2" but only if the url stays like this "mysite.com/category/" if i add "/page/2/" to the end, it redirects me to the broken home page. So even if the pagenavi works, the "/page/#/" is breaking it, of course <code>the get_query_var('paged')</code> or <code>get_query_var('page')</code> will return its default "1" since i'm not using the "/page/" structure, maybe i could do a fix by adding a ?p=# when i click in each number of the pagenavi, not quite sure how to do that in the plugin file, so i hope you guys  could help me out based on what i'm saying now, if not, well i'll try to see how i fix this the ugly way. Thanks in advance again.</p>