OK, I am creating a business listing site that is using a custom taxonomy for the listing "type". I need to display two loops on the taxonomy archive page, one for "sponsored" listings and one for regular ones.
taxonomy archive: http://pastie.org/3187162
pagination function: http://pastie.org/3187168
Both parts are doing exactly what I want, with one hitch: there are approx 50 non-sponsored listings in a specific category, but the 2nd query is maxing out at 5 "pages" (i.e. 25 listings if I set posts_per_page to 5, 35 if I set posts_per_page to 7)
I'm stumped. Any ideas?
FWIW, I've been testing the code layout here: http://www.kriesi.at/archives/how-to-build-a-wordpress-post-pagination-without-plugin and it's working a bit better, in that I get the total number of "pages" it should have. But it still gives me a 404 after page 5.