I have a "Show More" shortcode that works on page load, but after filtering a Toolset View with AJAX the shortcode stops working because the replaced HTML loses its initialization.
Solution:
Wrap the Show-More initialization in a function and call it both on page load and again after Toolset’s AJAX events (js_event_wpv_parametric_search_results_updated and js_event_wpv_pagination_completed). Add this script in the View’s JS editor or your theme’s JS file so the Show-More feature re-initializes whenever the results refresh.
I set up a View with radio button filters using “AJAX results update when visitors change any filter values,” but no results showed when selecting options. I also needed to remove a dash that appears before child category names in the filter.
Solution:
The AJAX issue was caused by a custom animation class setting transparency to zero; removing that fixed the results display. To remove the dash from child category labels, add a custom JavaScript function to strip leading “- ” characters from the labels, and run it both on page load and after AJAX updates.
I want to create a search View in Toolset using the classic editor to allow for more detailed filtering, as I am more comfortable with that interface.
Solution:
Enable legacy Views by going to Toolset > Settings > General, checking “Show both the legacy and Blocks interface and let me choose which to use for each item I build”, then reload the page to access Toolset > Views, where you can build the search View using the classic editor and shortcodes.