Reply To: search all

#5503
Ernest Marcinko
Ernest 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:

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

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…

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)