Hello,
I’ve a post widget that show woocommerce product and that, to can work, need to have before this script inserted in a text widget :
[searchandfilter id=”5236″ action=”filter_next_query”]
<script>(function ( $ ) {
“use strict”;
$(document).on(“sf:ajaxfinish”, “.searchandfilter”, function(){
elementorFrontend.hooks.doAction(‘frontend/element_ready/posts.cards’,
jQuery(‘.elementor-widget-posts’));
});
}(jQuery));</script>
now in the post widget under this script i’ve all the products but i need that on this wodget mus be shown only the categories taht i’ce set on the search form and not all.
in the widget post , related to wuery section. has set the posrt source so i can not select the correct categories to be sxcluded.
How can i reach this reasult?
Thank You