[wp-trac] [WordPress Trac] #16168: 404 error with pagination on custom taxonomy page

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 9 15:55:08 UTC 2011


#16168: 404 error with pagination on custom taxonomy page
--------------------------+-----------------------------
 Reporter:  kamiyeye      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.0.4
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 If a query with a custom 'posts_per_page' is made in a specific taxonomy
 template say taxonmy-portfolio_categories.php

 {{{
 $paged = get_query_var('paged') ? get_query_var('paged') : 1;
 query_posts(array('post_type'=>'portfolio', 'paged'=>$paged,
 'posts_per_page' =>$posts_per_page,
 'portfolio_categories'=>$category->name));

 }}}

 Assume qualified posts number is 28, $posts_per_page is 6 (thus 5 pages in
 total), and the option value of "Blog pages show at most" is 10, a 404
 error will be returned when trying to access the 4th page or 5th page.

 This only occurs with querys on custom post types or custom taxonomies,
 not found with querys on build-in post types or taxonomies.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16168>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list