• Hi,

    I’ve installed the plugin, and noticed the “suggested / Did you mean” keywords are not showing up (when no results)

    I tested this plugin a while back, and it definitely worked then.

    Your demo https://ajaxsearchlite.com/ doesn’t even have them.

    I definitely have it turned on in the backend.

    Has this feature been removed?
    I actually think there may be a bug, I can see a request is being made to google, but the results aren’t being displayed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter llll0717

    (@llll0717)

    Hey

    Found the issue.

    Here’s the fix. (hopefully we see it in a new version soon)

    includes/classes/ajax/class-asl-search.php

    replace

    if (count($results) <= 0 && isset($sd['keywordsuggestions']) && $sd['keywordsuggestions']) {

    with

    if (count($results) <= 0 && isset($sd['kw_suggestions']) && $sd['kw_suggestions']) {

    includes/classes/search/class-asl-query.php

    replace

    $keywords = $t->getKeywords( trim($this->args['phrase']) );

    with

    $keywords = $t->getKeywords( trim($this->args['s']) );

    • This reply was modified 3 years, 2 months ago by llll0717.
    Plugin Author wpdreams

    (@wpdreams)

    Oh wow, thank you very much ??
    I forgot to update that file recently, when the search files were updated as well.

    Thanks again,
    Ernest M.

    Thread Starter llll0717

    (@llll0717)

    No problem! ??

    Lili

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestions not working?’ is closed to new replies.