Home › Forums › Front-end Issues › Issue on result page with Facewp › Reply To: Issue on result page with Facewp
UPDATE ***
I found a solution by adding this JS in the main search page. it’s not a pretty one but it’s working pending a better solution.
<script>
(function($) {
$(document).on('facetwp-refresh', function() {
if (FWP.loaded) { // after the initial pageload
FWP.parseFacets(); // load the values
FWP.setHash(); // set the new URL
location.reload();
return false;
}
});
})(jQuery);
</script>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.