Forums › Forums › Search & Filter Pro › Absolutely not working
- This topic has 9 replies, 2 voices, and was last updated 8 years, 8 months ago by Ross.
-
Anonymous(Private) February 22, 2016 at 9:55 am #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(Private) February 22, 2016 at 11:48 am #37617Hey 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(Private) February 22, 2016 at 1:49 pm #37631Hello 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(Private) February 22, 2016 at 2:20 pm #37633What version of S&F are you running?
If you are on the latest, check under
search & filter
->settings
and disablelazy load JS
Re your other points, can you elaborate with links?
Thanks
Anonymous(Private) March 2, 2016 at 2:38 pm #38458Hello 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 resultThanks 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 resultRoss Moderator(Private) March 3, 2016 at 12:34 am #38516Without taking a look directly it could be 2 things:
1) conflicting settings in the
tags, categories & taxonomies
andpost meta
tab – empty these out and test again2) 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(Private) March 3, 2016 at 11:06 am #38549Thank 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(Private) March 4, 2016 at 1:07 am #38670Hey 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
-
AuthorPosts