title: pagination on custom post wp_query
body: <pre><code>&lt;?php
          $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
          $loop = new WP_Query(
              array(
                  'post_type' =&gt; 'html5-blank',
                  'posts_per_page' =&gt; 5,
                  'paged'=&gt;$paged
              )
          );
  ?&gt;
  &lt;?php if ($loop-&gt;have_posts()): while ($loop-&gt;have_posts()) : $loop-&gt;the_post(); ?&gt;      
   //Loop Code Here..
   &lt;?php wp_reset_query(); ?&gt; 
     &lt;nav&gt;
          &lt;?php previous_posts_link( 'Newer posts &amp;raquo;' ); ?&gt;
          &lt;?php next_posts_link('Older &amp;raquo;') ?&gt;
      &lt;/nav&gt;
  &lt;?php endwhile; ?&gt;
  &lt;?php else: ?&gt;
  </code></pre>
  
  <p>Url on next page as I input result is: www.mywebsite.com/blog/page/2 is WORKING.
  But I can't show the pagination links.</p>
  
  <p>Where did it go wrong?</p>
  
  <p>EDIT: Pagination link is showing in <code>page/2/</code> but not in the main blog page. 
  Why?</p>