Sidebar filter problem

Forums › Forums › Search & Filter Pro › Sidebar filter problem

Viewing 10 posts – 1 through 10 (of 10 total)
  • Anonymous
    #33648

    Hi!

    Thank you for the update. And my problem has returned.
    My filter doesn’t work in sidebar. It doesn’t give any results.

    Please, help.
    Thank you

    Anonymous
    #33649
    This reply has been marked as private.
    Ross Moderator
    #33710

    This is not a Search & Filter issue.

    You are loading jQuery twice in your code.

    It would really be helpful rather than just posting problems if you can describe what you have done to your site before errors began, rather than just blaming the plugin.

    Thanks

    Anonymous
    #33712

    Thank you for the answer, Ross!

    Ok, I see.

    By the way, I blamed, as you’ve said, search and filter plugin, because before the updating it worked well.

    Ross Moderator
    #33713

    No worries, its just I’m guessing something else must have also changed in your code around the same time, to load jQuery twice?

    Because a lot of JS doesn’t work when jQuery is loaded twice, depends on the load order of the scripts.

    Have a good weekend! 🙂

    Anonymous
    #33714

    Ross, could you tell me how to fix this error – Uncaught TypeError: $(…).searchAndFilter is not a function?

    Thank you

    Ross Moderator
    #33716

    You are loading jQuery twice.

    I have no idea what could cause this, but this is usually some bad code or custom code, but occasionally comes from a plugin.

    You’ll have to disable things and test on your site to find the issue.

    Thanks

    Anonymous
    #33717

    Thanks, Ross!
    Ok.

    Anonymous
    #33718

    And one more question, Ross!
    Does the code you gave me before

    wp_register_script( 'search-filter-plugin-build', home_url("/wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.js"), array('jquery', 'jquery-ui-datepicker'), '1.4.3' );
    wp_localize_script('search-filter-plugin-build', 'SF_LDATA', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'home_url' => (home_url('/')), 'sfid' => '' ));
    
    wp_enqueue_script( 'jquery-ui-datepicker' );
    wp_enqueue_script( 'search-filter-plugin-build' );

    can be the reason of this error?
    Thank you

    Anonymous
    #33721

    Thank you, Ross, for the answers. I’ve found the second script. Please check this topic as resolved.

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

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.