Bug w/ Custom Post Type Archive Page and WP_Query
|Reported by:||whatadewitt||Owned by:|
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.