• Hi, I really like the plugin but something isn’t doing right. Somehow the search results are always coming from another (main) blog in my multisite network. I have tried all options available with no success. Since I have read that the pro version allows to choose which mu-blog should be searched in, I am asking myself, if I am really supposed to buy the pro version to use it correctly on a multisite network? Otherwise, is there a way to fix this?

    Thank you

    https://www.ads-software.com/plugins/ajax-search-lite/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi!

    You definitely shouldn’t buy the pro for only this feature, as this should work correctly.

    I’ve checked the source and there is indeed a bug there. Here is how you can fix it very quickly:

    Open up the wp-content/plugins/ajax-search-lite/search.php file and go to lines 85-57, where you should see this:

    if (!isset($search['data']['selected-blogs']) || $search['data']['selected-blogs'] == null || count($search['data']['selected-blogs']) <= 0) {
        $search['data']['selected-blogs'] = array(0 => 1);
    }

    Delete those and change them to simply:

    $search['data']['selected-blogs'] = array(0 => get_current_blog_id());

    That hopefully solves this issue.

    How Ajax Search Lite v4.6.3 with multisite feature?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search results from wrong multisite blog’ is closed to new replies.