This topic was closed so I had to repost. I used the Jquery code to set a default category to the single one I am using, #18. For some reason it will not toggle the value to checked. I used the code provided in https://wpgeodirectory.com/support/topic/set-default-category/ and just changed the category number to the one used on my site. I had to put to code in the footer as the header made the Google Map go away. That is telling, must be a conflict but I don’t see anything in the console. Any ideas?
<script>
jQuery(document).ready(function(){
if(location.pathname == "/add-listing/")
{
jQuery('#gd_placecategory.chosen_select').val('18').change();
setTimeout(function()
{
jQuery('input[name = post_default_category][value = 18]').attr("checked", "checked");
}, 2000);
}
});
</script>