[wp-trac] [WordPress Trac] #17339: Bug w/ Custom Post Type Archive Page and WP_Query

WordPress Trac wp-trac at lists.automattic.com
Sun May 8 19:55:39 UTC 2011


#17339: Bug w/ Custom Post Type Archive Page and WP_Query
-------------------------------+------------------------------
 Reporter:  whatadewitt        |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by whatadewitt):

 No no.

 I'm displaying only 4 posts at a time of my custom post type, but the
 "reading" settings say 10.

 I had 154 posts, so I should have 39 pages, however, when I get to page 16
 and hit "next" to get to page 17, I'm getting a 404.

 It's almost as if the 10 in the reading settings is what is being used to
 determine if I should have a 16th page and it's completely ignoring that
 I'm only displaying 4 at a time.

 I switched that 10 to -1 and it worked fine, but it appears as though the
 archive page logic is deciding that I can't have a 17th page because there
 aren't enough posts, ignoring the fact that I'm only displaying 4 per
 page.

 This maybe could be changed a "minor" bug, as the case I'm getting this is
 quite specific to this one site, but I feel as though it needs to be
 reported so that  maybe a change could be made so others don't get this
 problem in the future.

 Thank you,

 --d

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17339#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list