Vladimire Calixte

Forum Replies Created

Viewing 4 posts - 76 through 79 (of 79 total)
  • Author
    Posts
  • in reply to: Custom Fields Disappearing #421100

    Vladimire Calixte
    Free User
    Post count: 85

    I have the single category showing as a checkbox on the front end and have tried to use the method described at the link below to have the checkbox automatically checked. The category ID is 109 (only one category in use). It is not working.

    https://wpgeodirectory.com/support/topic/set-default-category/

    Here is the script. Can you see what is going wrong?

    <script>

    jQuery(document).ready(function(){

    if(location.pathname == “/add-your-listing/?listing_type=gd_therapist”)
    {
    jQuery(‘#gd_therapistcategory.chosen_select’).val(‘109’).change();
    setTimeout(function()
    {
    jQuery(‘input[name = post_default_category][value = ‘109]’).attr(“checked”, “checked”);
    }, 2000);

    }
    });

    </script>

    in reply to: Custom Fields Disappearing #420966

    Vladimire Calixte
    Free User
    Post count: 85

    We don’t want to use category for Therapist listings; there is only one category: ‘All Therapists’. Do you have a PHP snippet that would set that for all new Therapist listings without the site visitor having to do so?

    in reply to: Custom Fields Disappearing #420909

    Vladimire Calixte
    Free User
    Post count: 85
    This reply has been marked as private.
    in reply to: Custom Fields Disappearing #420897

    Vladimire Calixte
    Free User
    Post count: 85
    This reply has been marked as private.
Viewing 4 posts - 76 through 79 (of 79 total)