One page out of two in search results
-
Hi there,
Strange behavior of the search results pagination : say I have 87 results.
– The first page shows the first 25 results, as expected.
– But the second page shows results 51 to 75 instead of 26 to 50.
– There is a pagination link to show page 3, but it yields a 404 error (trying to show results 101 to 125).I have a dirty workaround : comment out lines 1693 to 1696 of the file search.php in Relevanssi (done right now, so my site behaves ok).
/*if ( isset( $query->query_vars['offset'] ) && $query->query_vars['offset'] > 0 ) { $search_high_boundary += $query->query_vars['offset']; $search_low_boundary += $query->query_vars['offset']; }*/
Where should I investigate to find a good solution ? I use a slightly customized Hueman theme, and I don’t see any query_posts() or $wp_query->get_posts().
Cheers,
Franck.The page I need help with: [log in to see the link]
- The topic ‘One page out of two in search results’ is closed to new replies.