﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
17339,Bug w/ Custom Post Type Archive Page and WP_Query,whatadewitt,,"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",defect (bug),closed,normal,,Query,3.1,normal,duplicate,has-patch,
