Created
August 28, 2017 18:49
-
-
Save JarrydLong/1888e50b90468cb087f8c66010c57ff4 to your computer and use it in GitHub Desktop.
Select a specific category based on Cat ID on page load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wpgmza_open_cat = wpgmza_getUrlVars()["catid"]; | |
jQuery(document).ready(function(){ | |
if( jQuery('.wpgmza_checkbox').length > 0 && typeof wpgmza_open_cat !== 'undefined' ){ | |
setTimeout(function(){ | |
jQuery("#wpgmza_cat_checkbox_"+wpgmza_open_cat).click(); | |
}, 800); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment