"Limit Posts to Category" breaks paging
|Reported by:||alexkingorg||Owned by:||anonymous|
Using a plugin similar to Ryan Boren's Front Page Cats http://dev.wp-plugins.org/browser/front-page-cats is breaking paging.
The problem is in _max_num_pages() - the $wpdb->get_var("SELECT COUNT... fails with the JOIN.
I've attached a patch, but I'm not crazy about the solution. However, since the query hooks allow this sort of join and there are no hooks in max_num_pages or the paging functions, it seems like a better solution that what we have now.