Looking for support? You can access the support system via your account.
- This topic has 4 replies, 2 voices, and was last updated 4 years, 11 months ago by .
You must be logged in to reply to this topic.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Incorrect categories and results being displayed.
Tagged: elementor pro, learndash
I am using search and filter pro with elementor pro posts widget.
I have created a search form and in general options I have chosen:
-search in the following post types: courses
No posts. I just want users to be able to filter among learn dash courses/programs I offer. I choose custom display method for results and name the page the results should be displayed on.
I then go to edit the page I want the search/filter to display and put these shortcodes in a text widget at top of page:
[searchandfilter id=”1198″ action=”filter_next_query”]
[searchandfilter id=”1198″]
In another section i then put the elementor pro posts widget and display all the courses offered.
However, in my search/filter options the count is zero for courses and i cannot filter these. If I choose blog posts then i can populate the categories but the results don’t show.
If you had a HTML widget (using the Text tab to enter the code), the code entered would look like this:
[searchandfilter id="1198"]
[searchandfilter id="1198" action="filter_next_query"]
<script>(function ( $ ) {
"use strict";
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
elementorFrontend.hooks.doAction('frontend/element_ready/posts.classic', jQuery('.elementor-widget-posts'));
});
}(jQuery));</script>
Notice that the shortcodes are the other way around? The script is needed.
Hello Trevor,
I did this but now it just shows the shortcodes on the page and nothing else. I pasted the above into a text widget on the text tab.
Cheers,
John
Hi Trevor,
Please ignore my previous comment, I had the plugin disabled!
I’ve added the code as specified and I believe all is working. I’ve noticed that if a certain course does not have any tags it does not display. seems they need a category and a tag associated with each one as those are the dropdowns I have on the page.
That may be a setup issue. Did you use the settings on the tags, categories and taxonomies settings tab? If so, be very careful doing this. IF, for example, you used INCLUDE on categories, and included ALL, it is better NOT to do this at all (leave the field blank) as ALL will still be included, but so will those with NO categories. So, be careful NOT to do this (as an example):
https://www.screencast.com/t/25YmicLYz5A
You see I selected all of them (you may have many more)? It is not a good idea to do this.
You must be logged in to reply to this topic.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy