Hello Team,
I want filter based on ?m=meeting-autumn-meeting. where ?m=" This is the id of checkbox".
I have added code like this: if I found 'meeting-autumn-meeting', call trigger click event on checkbox so the filter will work but counter of the result is not updated.
Here is the code:
jQuery(window).on('load',function(){
var meetingType = getUrlParameter('m');
if(meetingType)
{
jQuery('.left-checkbox-bar .form-group:nth-child(3) > label').addClass('active');
jQuery('.left-checkbox-bar .form-group:nth-child(3) .checkbox-grp').css('display','block');
jQuery('.left-checkbox-bar .form-group:nth-child(3) .checkbox-grp input#'+meetingType).trigger('click');
Hello. Thank you for contacting the Toolset support.
Well - the problem URL you shared with me is looks like login protected. To see your page with filter I think I need temporary access to your site.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Well - I can see you have added lot of custom JS code to your view Filter's JS box.
I can see when you click on checkbox "autumn-meeting" it shows 12 results and it loads 12 results with infinite scroll.
I do not know if you are aware about "Forntend Events" button available within the view Filter's JS box which will allow you to add custom JS callback as per your need.
Refer this image:
=> hidden link
For example:
jQuery( document ).on( 'js_event_wpv_parametric_search_results_updated', function( event, data ) {
/**
* data.view_unique_id (string) The View unique ID hash
* data.layout (object) The jQuery object for the View layout wrapper
*/
YOUR CUSTOM CODE GOES HERE
});