Forums Forums Search & Filter Pro It filters out results that shouldnt be filtered

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

    I have setup the plugin, so it loads 11 posts. But if i change something in my filter, and automatically removes 4 posts. Its the same 4 posts, and according to the settings, they should not be removed.

    Bad video of the problem 🙂 http://screencast.com/t/T5G6l5vrz3Z

    Its driving me insane. I cannot figure out why the 4 posts allways is outfiltered. They have the exact same settings as the other posts.

    Any clue?

    Ross Moderator
    #43643

    hi Jesper

    I think I may have the answer.

    You are using range sliders with post meta.

    What happens when you visit the page, before selecting a filter, is you will see the unfiltered results appear – with the extra 4 posts.

    When you submit the range slider (ie change the range, and then set it back to max range) something slightly different happens.

    The page is no longer “unfiltered”, it has all those range sliders applied to the results.

    So any posts that are missing, probably don’t have a value set for one of the meta keys in the range sliders.

    If you’re sure you’ve done this, then just double check on all your posts they are using exactly the same keys, if you had custom fields from ACF for example, they store 2 meta keys (one with and underscore) for every field, so sometimes just making sure you’re on the right one will sort it.

    Thanks

    Trevor
    #43645

    Do you have a live URL that I can see?

    Anonymous
    #43650
    This reply has been marked as private.
    Trevor
    #43669

    Hi Jesper

    There are some js errors in your theme’s main js file. The file is called theme.js

    Line 260 is this:

    jQuery('.home #site-navigation li a[href*=#]').on('click', function(event){
    

    and it should be this:

    jQuery('.home #site-navigation li a[href*="#"]').on('click', function(event){
    

    Line 289 is this:

    jQuery('#hero a[href*=#]:not([href=#]), .parallax-content a[href*=#]:not([href=#]), .back-top-top').on('click', function(event){
    

    and it should be this:

    jQuery('#hero a[href*="#"]:not([href="#"]), .parallax-content a[href*="#"]:not([href="#"]), .back-top-top').on('click', function(event){
    

    I do not know if this is the problem, I do not think so, but surely your theme author must have seen these errors, as they are obvious when used in WP4.5 (they do not show for WP4.4 and earlier)?

    Trevor
    #43670

    But I cannot see what the issue you describe is, yet.

    Trevor
    #43671

    I also notice that the url does not even have the get query in it. This is also indicative of a JS error.

    Anonymous
    #43719
    This reply has been marked as private.
    Anonymous
    #43720
    This reply has been marked as private.
    Anonymous
    #43721
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 17 total)