Forums › Forums › Search & Filter Pro › It filters out results that shouldnt be filtered
- This topic has 16 replies, 3 voices, and was last updated 9 years, 8 months ago by
Anonymous.
-
Anonymous(Private) April 22, 2016 at 10:25 am #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(Private) April 22, 2016 at 12:52 pm #43643hi 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(Private) April 22, 2016 at 5:38 pm #43669Hi Jesper
There are some js errors in your theme’s main js file. The file is called
theme.jsLine 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)?
-
AuthorPosts