Support » Plugin: Ajax Search Lite » searching posts works fine, searching pages doest work :((

  • Hi,

    at first I would like to thank you for the Plugin. It looks really nice, but I have a problem with the search in pages.

    I have created a testpage with a textsection (some words like “Testside”). After saving and publishing the testpage, I inserted the shortcode ([wpdreams_ajaxsearchlite] )in my sidebar. At first glance everthing looks fine, but when I try to search “Testside” I get a “No results” notification.
    When I search posts everything works fine.

    Can anyone tell me what’s going wrong? In the general options of the Plugin I set the “Search in posts” and “Search in pages” to “on”. There are no problems when I am searching posts, but pages the plugin do not find. It would be great if someone can help me in this case.

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I have just read a forum post from the plugin developer:
    https://wordpress.org/support/topic/no-results-7?replies=8#post-6414133

    I have changed the codeblock

    } else {
       $ex_cat = w_isset_def($searchData['selected-excludecategories'], array());
        if (count($ex_cat) > 0) {
            $words = '--'.implode('--|--', $ex_cat).'--';
            $term_query = "HAVING (ttid NOT REGEXP '$words')";
        }
    }
    $term_query = "";

    and now it works.

    But I have another question:
    What happens now when I exclude categories?

    Thx in advance.

    Best regards

    Plugin Author wpdreams

    (@wpdreams)

    Hi!

    Another case with this mysterious error I can’t figure out yet.

    With this code block included, the category exclusion should not work, as it resets them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘searching posts works fine, searching pages doest work :((’ is closed to new replies.