title: Adding pagination to custom post loop in page
body: <p>I have created a custom page template (testimonials-page.php) and in that template I am
  loading custom post type 'testimonials' using the following loop:</p>
  
  <pre><code>&lt;?php query_posts(array(
  'posts_per_page' =&gt; 5,
  'post_type' =&gt; 'testimonials',
      'orderby' =&gt; 'post_date',
      'paged' =&gt; $paged
   )
   ); ?&gt;
  
    &lt;?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
  
      &lt;div id="post-&lt;?php the_ID(); ?&gt;" class="quote"&gt;
      &lt;?php echo get_the_post_thumbnail($id, array($image_width,$image_height)); ?&gt;
      &lt;?php the_content(); ?&gt;
      &lt;/div&gt;
      &lt;?php endwhile; ?&gt;
      &lt;?php wp_reset_query(); ?&gt;
  </code></pre>
  
  <p>How do I add pagination to that? I installed the WP Paging plugin, and while that plugin works
  great when I call the pagination into category.php using:</p>
  
  <pre><code>&lt;p&gt;&lt;?php wp_paging(); ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Inserting the same thing into testimonial-page.php results in broken formatting and links that
  404 on me.</p>