Pagination broken when merging search results with additional WP_Query
I think the only solution is to skip the sql pagination and handle it only via php. My idea involves 2 functions, one hooked on pre_get_posts, the second to filter the_posts. The first function does 2 things: unset the paged value for search, in this way all the posts are returned from the SQL query. … Read more