Try adding this to your JS file. I have the same issue as you described.
After I sort, the sorted content contains links with a click function (get data attribute and launch modal to play video) that stops working and no errors. But when I refresh, it works. It might not be as slick with the page refresh, but my function now works.
$('.facetwp-facet').click(function() {
setTimeout(function() {
location.reload();
},500);
});
Related Posts:
- force enqueue script to be first in order of prominence
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Check javascript file Proper way in functions.php
- How do I use WordPress PHP functions in my Javascript code?
- How to create popup same as wordpress popup feature
- Pass a php string to a javascript variable
- Problem in loading javascript in footer
- JQuery not working in my plugin [closed]
- Best approach to fetch data from wp options to js file or php file
- Can someone please tell me what is wrong with my plugin?
- wordpress site | All-in-one-cufon IE Issue
- Change upload folder for a CPT
- Time consuming callbacks in customizer
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- Redux Framework: Page freezes on typing in Editor
- Using window.onload with Ubermenu
- “Conflict” with jQuery (or its plugins)?
- wordpress add_action() issue in ajax call
- Localizing methods for jQuery append prepend wrap parent
- Why does my jQuery plugin show up as text in WordPress?
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- Disable submit button order
- Load CSS files in header of Bones theme?
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- Javascript from Easy-Fancybox place into footer
- Jquery POST Ajax Return null data in wordpress
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Overriding inline !important CSS with Javscript code snippet with media query
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- How to properly enqueue jQuery knob on WordPress without conflict?
- Ajax Call not Working in Plugin
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?
- JS working when used normally but not in wordpress
- Website always load twice on start
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- show-hide based on select option jquery wordpress
- Javascript in plugin not working
- Possible jquery / library conflict in plugin usage
- Ajax, jQuery and WordPress
- Why won’t the Comprehensive Google Map Plugin load?
- get_option include in my adsense
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- Element works, but not on wordpress site [duplicate]
- Load css classes after using ajax calls
- TypeErrors with Yoast, jQuery in conflict?
- Javascript as Jquery Function Call?
- Count div with class (.length) only shows 0 [closed]
- WordPress 3.5 Media Manager – add a button
- Why my browser keeps loading old version of custom JavaScript files in \divi\js? [closed]
- jQuery AJAX call not executing in Plugin
- Problem with Search Results in WP (not displaying the full posts)
- How to use wp-ajax in wp-cron
- Add extra parameter in tag using script_loader_tag
- Insert code after tag without using functions.php?
- Adding with javascript to admin bar. Works in Chrome/Safari, not Firefox
- How to avoid redefining requirejs in plugin when another plugin also uses requirejs
- Get image URL from media library in input
- Passing select control value to block
- Reuse javascripts from plugins within the theme
- WP-Cufon adding extra space in my paragraphs in Firefox and Chrome
- add mediaelement.js plugins into WordPress video player control bar
- How to add Internationalization in WordPress using Javascript/React?
- How to get the element ID from new menu list that added with add_filter()?
- Ajax contact form widget plugin data not insert in database
- Is there a standard way to listen for an on change event of a posts featured image
- How to insert HTML/JavaScript form into WordPress page? [closed]
- GeoMashup plugin: how to customize cluster markers / icons? [closed]
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Integrating jQuery Datatables with Editor into wordpress admin
- JQuery prepend a function
- Register google jquery gets overwritten by plugin
- Which plugin can do horizontal scrolling of RSS feeds in WordPress [closed]
- Enqueue script: link not working in page source
- How to include my Ajax calls in one function instead of calling different ones every time?
- how to request a script more than once in wordpress
- How to turn off automatic operation for Nivo Slider?
- Using AJAX to run SQL statement and populate dropdown
- WordPress slider that allows image, headline, text, and button?
- Adding a jQuery modal dialog to the admin area
- Wp-minify doesn’t seem to minify my JS code
- Ajax call not working in wordpress through a plugin
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- Cannot run script properly with my custom plugin
- Performing CRUD operations on front end in wordpress
- How to add specific script to WordPress webpage that will working with user input and databases
- Add external javascript to post template
- Why can I not deregister my style and script on custom post type?
- AJAX update fails for public/non-admin users
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Conditional Fields depending on checkboxes
- Adding javascript to header of MetroMagazine theme
- Media Playlist Plugin
- Adding an onchange event to a custom dropdown menu in WordPress
- How to add jquery to my custom post type wp plugin
- Like/Dislike Bar not working when updating
- jquery-issue: cannot load the basic jquery