Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Problem with multisite? › Reply To: Problem with multisite?
March 21, 2014 at 10:59 am
#1481
Of course, why didn’t I think of that.
Actuall, maybe this will work. Open the plugins/ajax-search-pro/search.php file. That’s a controller type of file, it initiates the search actions.
Line 138 should be empty, put this thing there:
$search['data']['selected-blogs'] = array(get_current_blog_id());
Lines 139-170 do the hard work. The foreach parses through the $search[‘data’][‘selected-blogs’] variable (array of selected blog ids), which by default shouldn’t be empty. By pasting this code it puts the current blog id there, and that’s it. I’m 99% sure, that this will finally solve the issue.
- This reply was modified 10 years, 1 month ago by Ernest Marcinko.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)