Forums › Forums › Search & Filter Pro › Elementor Filter not working (Showing All results)
Tagged: Elementor
- This topic has 9 replies, 2 voices, and was last updated 5 years, 3 months ago by Trevor.
-
Anonymous(Private) September 21, 2019 at 4:51 am #221526
Hello,
I am using this plugin with Elementor on this website: http://avalon.myriagoncreative.com/venues/
1. When I add in the short code [searchandfilter id=”318″ action=”filter_next_query”] as indicated in the guide, The Post grid from elementor disappears. When I remove this short code everything looks right but it does not filter. Though I have different tags applied to different posts, when I attempt to filter all of the options stay the same. I can see the page refresh each time an option is applied but it does not give the correct results.
2. I saw in previous support posts you reccomendation to include the following code on the page. I did this, and it solved an issue I was having with the formatting of the posts but the filtering issue is still on going.
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ elementorFrontend.hooks.doAction('frontend/element_ready/posts.cards', jQuery('.elementor-widget-posts')); }); }(jQuery));</script>
Any help you can provide would be greatly appreciated.
Thank you
Trevor(Private) September 23, 2019 at 11:35 am #221562You need to separate out groups, branches or parent/child tags into separate custom taxonomies. In the case of your form, this means you plan to use tags three times, so you really need a new taxonomy for the children (Capacity, Region and Venue Style).
In general, you can use a particular Taxonomy, such as Category, (or Tags, each Taxonomy and each Custom Field) only once in the form. This post tries to explain this a bit better (you can use a plugin to switch category terms from category to any new taxonomy that you make, so it is not so hard to do). It is a really awful preachy lecture I wrote:
https://support.searchandfilter.com/forums/topic/multiple-categories-combination/#post-55166
Sorry about the tone, but the message is right and it links to good plugins (except taxonomy switcher I think).
Taxonomy switcher is a ‘use once and remove’ type of plugin, and it uses ‘hidden’ features in WordPress that have not changed for about 2 years.
Let us say that you have Categories (as WordPress calls them) on some posts, and some of them are fruit types. For example, Apple. Now you decide to have a separate taxonomy called Fruit Type. You may have hundreds of posts with those fruit types already in Categories, and don’t want to retype them all again. Let us say the the Apple ‘term’ has an ID # of 234 (they all have ID numbers). You tell Taxonomy Switcher to move the term 234 from Categories to Fruit Types, and it does all the work for you. You can do a whole bunch of IDs at once, all you need is their ID numbers.
IF you went in to one of our forms in admin, to the Tags, Categories & Taxonomies settings tab, find the line for Categories (in this case) and use the search to ‘add’ all the ones you want to move, then you will see in the settings box all the ID numbers you need to be able to do this. So, cut them from that box and paste them in to Taxonomy Switcher.
Be wary if you have child terms though (those which have a parent), as the parent may have to be moved also, or you may need to re-define the children as parents instead before you move them.
Anonymous(Private) September 23, 2019 at 7:10 pm #221661Hello Trevor, Thank you for your reply and your advice. I installed the custom post UI plugin and configured the taxonomies for the different items. I removed the tags and configured the posts as well as changed the Search Form UI information in the plugin. I updated everything and cleared my cache.
The filtering tool is still not working. When I select any options it is still showing all of the posts and not filtering them based on the selectors indicated.
Is there something else I’m missing?
Thanks for your help.
Anonymous(Private) September 24, 2019 at 2:13 am #221710Hi Trevor,
I rebuilt the cache for the plugin but now it is not doing anything when I select options to filter, Before I could see the page refresh but nothing would change. I have the auto submit option enabled.
When I add a submit button all of the options in the drop down menus disappear and I am unable to make any selections.
I didn’t change any settings beyond just rebuilding the cache.
-
AuthorPosts