I'm using categories and wp_query to create an "advanced search" feature on my website. It was working great until recently I noticed that the pagination was broken. The following 2 links should demonstrate the problem:
On page 1 I get 185 results:
But on subsequent pages the query string breaks:
You should see the second link redirect to:
What with recent upgrades to WordPress I have no idea what might be causing this. Any pointers would be very, very welcome! I've been trying to figure this one out all day. :)
Here is my query code:
query_posts( array_merge( wp_query->query, array( 'category__and' => $pladvsearchcatids, 'meta_key' => 'price', 'orderby' => 'meta_value_num', 'meta_compare' => '<=', 'meta_value' => $plbudget, 'order' => 'DESC' ) ) );
Just noticed something really strange. When I download my site and work locally the problem goes away. The query string is not redirected on page 2 and paging through the results works as expected.