title: pagination not working on wordpress custom post type
body: <p>This is the code i did for listing custom post type post in wordpress but it doesn't worked pagination what the mistake i did here can any one help ??</p>
  
  <pre><code>&lt;div id="talent-main"&gt;
     &lt;?php      
     global $wp_query; 
     $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
     $loop = new WP_Query( array('post_type' =&gt; 'talent','posts_per_page' =&gt; 2,'paged'=&gt;$paged)); 
     ?&gt;
  
      &lt;?php while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post(); ?&gt;
            &lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class('multiple') ?&gt;&gt;
                &lt;div class="post-image-talent"&gt;
                    &lt;a class="post-frame &lt;?php the_ID(); ?&gt;" href="&lt;?php the_permalink() ?&gt;" title="&lt;?php the_title_attribute(); ?&gt;"&gt;&lt;/a&gt;
                    &lt;?php the_post_thumbnail('video-talent-thumb'); ?&gt;
                &lt;/div&gt;
                &lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="&lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_short_title('', '...', true, '22') ?&gt;&lt;/a&gt;&lt;/h2&gt;
            &lt;/div&gt; 
      &lt;?php endwhile;?&gt;
      &lt;div class="navigation"&gt;   
          &lt;div class="alignleft"&gt;&lt;?php previous_posts_link('&amp;laquo; Previous') ?&gt;&lt;/div&gt;   
          &lt;div class="alignright"&gt;&lt;?php next_posts_link('More &amp;raquo;') ?&gt;&lt;/div&gt;   
      &lt;/div&gt;  
  &lt;/div&gt; &lt;!-- main --&gt;
  </code></pre>