title: bug in wp-pagenavi plugin
body: <p>I have downloaded the wp-pagenavi from this location. <code>http://wordpress.org/extend/plugins/wp-pagenavi/installation/</code>. I am using wordpress 3.3.1. I have installed this plugin using the instructions. I used the following code in home.php to display the posts and pagination.</p>
  
  <pre><code>&lt;?php
  /**
   * Template Name: Home Page
   */
  get_header(); 
  
  
  ?&gt;
  
  &lt;?php include(TEMPLATEPATH."/sidebar.php");?&gt;
  
      &lt;div id="content_right"&gt;
      &lt;?php if ( function_exists('yoast_breadcrumb') ) {
      yoast_breadcrumb('&lt;div id="breadcrumbs"&gt;','&lt;/div&gt;');
  } ?&gt;
  &lt;div class="clear"&gt;&amp;nbsp;&lt;/div&gt;
  &lt;?php 
  // Display most recent posts
  
  $the_query = new WP_Query( "showposts=5" );
  $postcount = 0;
  while ( $the_query-&gt;have_posts() ) : $the_query-&gt;the_post();
  $postcount++;
   ?&gt;
  
  &lt;div class="blog_left"&gt;
  &lt;div&gt;&lt;?php
  if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
    the_post_thumbnail();
  } 
  ?&gt;
  
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="blog_right"&gt;
  &lt;h2&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
  &lt;div&gt;in: &lt;?php the_category(', ') ?&gt;&lt;/div&gt;
  &lt;?php the_excerpt(); ?&gt;
  &lt;/div&gt;
   &lt;div class="clear"&gt;&lt;/div&gt;
  
  &lt;?php
  if( $postcount != 5){?&gt; 
   &lt;p class="blogdivider"&gt;&lt;/p&gt;
  
  &lt;?php } ?&gt;
  
  &lt;?php endwhile; 
  $count = 0;
  ?&gt;
  &lt;?php wp_pagenavi(); ?&gt;
  
      &lt;/div&gt;
  &lt;?php get_footer(); ?&gt;
  </code></pre>
  
  <p>But pagination doesn't display in my webpage. I couldn't track what is missing. Any suggestions?</p>