Forums Forums Search & Filter Pro Incorrect categories and results being displayed.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Trevor
    #209891

    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.

    Anonymous
    #209936

    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

    Anonymous
    #209946

    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.

    Trevor
    #210021

    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.

Viewing 4 posts - 1 through 4 (of 4 total)