This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Empty search on child site

#20031
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

If your remove the code, does that make any difference? That should not affect the pagination as far as I know, because the ‘post_results’ filter should always pass the current results, from the current page.
For the wordpress pagination to work, the
[php]$_GET[‘paged’][/php]
and the
[php]$wp_query->query_vars[‘paged’];[/php]
..variables should be set. They are usually set automatically, when the page URL is accessed, and the ‘paged’ argument is set, such as http://yoursite.com?s=1&paged=2 -> the &paged=2 tells, that the current page is page 2.