Forums Forums Search & Filter Pro Absolutely not working

Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Anonymous
    #37595

    Hello,

    I’m trying to use the shortcode method on my index page. Inserting the shortcodes in the page results showing five posts above my index page posts. This is without touching any field.

    Although AJAX is selected, nothing happens when I select a term. If I use the submit button the page reloads and shows the same posts five post – not filtered by any term I select.

    Additionally I have a
    Uncaught TypeError: t(…).searchAndFilter is not a function
    error present in console.

    ASAP support needed.

    Ross Moderator
    #37617

    Hey Palos

    Please check the forums, this one has come up a few times in the past.

    https://support.searchandfilter.com/forums/search/Uncaught+TypeError+searchAndFilter/

    I’m guessing its to do with loading another copy of jQuery and not maintaining the other dependencies in your theme.

    Thanks

    Anonymous
    #37631

    Hello Ross,

    Many thanks for the quick reply.

    Indeed, another copy of jJQuery was called on the page, removing it solved the JS error. Thanks for pointing it out.

    It looks that the search-filter-build.min.js is not called, only manually inserting it makes the plugin work. How come the JS is not loaded properly?

    Two other problems:
    Why are post listed by the plugin without using the search form?
    Using the taxonomy filters with ALL gives a maximum of five posts instead of the maximum set in the settings.

    Thanks.

    Ross Moderator
    #37633

    What version of S&F are you running?

    If you are on the latest, check under search & filter -> settings and disable lazy load JS

    Re your other points, can you elaborate with links?

    Thanks

    Anonymous
    #37636
    This reply has been marked as private.
    Ross Moderator
    #37712
    This reply has been marked as private.
    Anonymous
    #38458

    Hello Ross,

    Sorry for not getting back to you, it seems that I could resolve the problem on my own.
    However I face other difficulties now:

    Posts without empty taxonomy terms don’t shop up in the search result. If I leave a taxonomy empty (without terms), the posts do not show up in the result when I search for them:

    Scenario:

    Field relationship is set to AND.

    Taxonomy 1: set (dropdown)
    Taxonomy 2: not set (dropdown)
    Taxonomy 3: not set (checkboxes with OR)
    ——————————–
    Filtering for taxonomy 1 yields: 0 result

    Thanks in advance.

    Update

    Scenario 2:
    Field relationship is set to OR.

    Taxonomy 1: set (dropdown)
    Taxonomy 2: set (dropdown)
    Taxonomy 3: not set (checkboxes with OR)
    ——————————–
    0 result

    Ross Moderator
    #38516

    Without taking a look directly it could be 2 things:

    1) conflicting settings in the tags, categories & taxonomies and post meta tab – empty these out and test again

    2) something affecting your results, like the WP filter pre_get_posts

    Try disabling plugins, custom code and even changing your theme to rule out anything there.

    Thanks

    Anonymous
    #38549

    Thank you for the quick reply.
    Emptying the tags, categories and taxonomies solved the problem.

    To prevent bootstrap dropdowns disappearing I used:
    $('.selectpicker').selectpicker();
    $('.selectpicker').selectpicker('refresh');
    on sf: ajaxfinish while using autosubmit.

    However disabling autosubmit and using the submit button my bootstrap dropdowns disappear after applying a filter in the search form.
    Settings: Maintain Sarch Form state unchecked, Auto Count enabled, Update the Search Form on user interaction checked.

    Is there a way I could prevent dropdowns dissappering?

    Thanks again.

    Ross Moderator
    #38670

    Hey Palos without seeing the site its going to be really hard for me to guess what is going on.

    Whenever you interact with teh form, it is updated, which you may not want – try disabling Update the Search Form on user interaction

    Apart from that its hard to figure out what you are trying to achieve I’m afraid.

    Thanks

Viewing 10 posts - 1 through 10 (of 10 total)