[wp-hackers] Pagination for Static Pages
Devin Dixon
devin at tayloegray.com
Wed Aug 11 16:40:28 UTC 2010
Hey all,
I am having a slight issues using pagination with static pages that
have custom templates. Currently my code looks something like this:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$wp_query = new WP_Query( array( 'post_type' => 'success_stories',
'posts_per_page' => 10, 'paged'=>$paged, ) );
//Run through the Loop, spit out info
<div class="navigation">
<p>Work Please</p>
<div class="alignleft"><?php next_posts_link('Previous entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next entries') ?></div>
</div>
The problem is, the subsequent pages all become Error 404 for some
reason. I've looked online and this times to be a bug. Does anyone
have any solutions?
Thanks!
More information about the wp-hackers
mailing list