Forums › Forums › Search & Filter Pro › Multi taxonomies results in 0 search result
- This topic has 10 replies, 2 voices, and was last updated 5 years, 6 months ago by Trevor.
-
Anonymous(Private) April 23, 2019 at 8:40 am #208898
Good day
I really tried to solve this issue before posting here but I can not solve it.
When I use a search form with one taxonomy everything works fine
When using a form with several taxonomies I get 0 results
What am I doing wrong
Here is the link to the page that works – 1 taxonomy
https://petlifesa.com/testsite/training-behaviour/page that does not wwork 4 txonomies
https://petlifesa.com/testsite/health-wellness/Regards
HeinzAnonymous(Private) April 23, 2019 at 3:17 pm #209013Hi I really dont follow
BTW, you cannot have the same form control used like this more than once, but they don’t appear to be doing anything right now anyway.
Meaning cant have more than one taxonomy? In the video tutorial there are 2 taxonomies used?
I activated the plugin thta created the taxonomies and assigned them again
I can see search results but it does not filter nor recount on the fly?
Trevor(Private) April 24, 2019 at 1:04 pm #209164At the moment you are using our Shortcode display results method. You have two alternatives:
#1 Use the Elementor Post grid. Our plugin will integrate with this (to show any Post Type) to allow you to show results in a grid. Our guide for Elementor:
https://searchandfilter.com/documentation/3rd-party/elementor/
Even if you do not have Masonry enabled (it might not even be an option), use the guide for Masonry & Ajax, but, instead of this code:
(function ( $ ) { "use strict"; // detects when the ajax request has finished and the content has been updated // re-init the layout scripts from Elementor $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ elementorFrontend.init(); }); }(jQuery));
Use this code:
(function ( $ ) { "use strict"; // detects when the ajax request has finished and the content has been updated // re-init the layout scripts from Elementor $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ elementorFrontend.hooks.doAction('frontend/element_ready/posts.classic', jQuery('.elementor-widget-posts')); }); }(jQuery));
Note, if you are placing the code inline on the page (in a widget), it needs the
<script>.....</script>
tags around it. You can often place the form shortcode, the linking filter_next_query action shortocde, and the script all in one text module.#2 Use our integration with the free Post Grid plugin. See here:
https://searchandfilter.com/documentation/3rd-party/post-grid/
-
AuthorPosts