Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › search all › Reply To: search all
August 5, 2015 at 10:28 am
#5503
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 :)