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

Reply To: search all

#5503
Ernest MarcinkoErnest Marcinko
Keymaster

Hi

Well, this would be only possible by making tiny modifications to the code.
Try opening up the wp-content/plugins/ajax-search-pro/search.php file and scroll to line 236, which should be empty. Add these lines there:

[php]
$all_sites = wp_get_sites();
$search[‘data’][‘selected-blogs’] = array();
foreach ($all_sites as $_site) {
$search[‘data’][‘selected-blogs’][] = $_site[‘blog_id’];
}
[/php]

I haven’t tested this, but I’m guessing it should work.

The active blog means the one that’s used at the moment. For example you have 10 sites and all of them have the ajax search widget on the sidebar. If you do a search on the first site, it will return results from the first, if you open the second site and do a search, it will return results from the second and so on…