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

WordPress Trac wp-trac at lists.automattic.com
Fri May 6 18:16:57 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        |   Keywords:
--------------------------+-----------------------------
 Hi,

 I have a custom post type on my blog, for it I have a custom archive page.

 My reading settings in the admin were set to display 10 posts per page
 (default), where in my theme, I had a WP_Query with the "posts_per_page"
 variable set to 4.

 If my custom post type had 154 posts, I could get to page 16, but going to
 the "next" page was giving me the 404. If I had 216, I could get to page
 22, but not to page 23. (154 / 10 would give me 16 pages, 216 / 10 would
 give me 22 pages).

 I went into my reading settings and changed the default values of 10 to
 -1, and it appears to have fixed the error, but this seems more like a bug
 than something I require support with, and I haven't found anything else
 like this in here, so I thought this was the best place for it.

 Thank you,

 --d

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


More information about the wp-trac mailing list