Checkbox allowing comments

This topic contains 7 replies, has 2 voices, and was last updated by  Stiofan O’Connor 6 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #381724

    Andrew Merritt
    Expired Member
    Post count: 29

    Hello GD team,

    The owners of some listing don’t want to allow comments from the visitor. Is it a way to insert a checkbox in the create listing page (listing_type=gd_place) that will allow/or not the comments ?

    When it is check the visitor will be able to leave comments. When it is uncheck no comments is allowed.

    Regards,
    Andrew

    #381782

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Andrew,

    There is no way to do this by default but you could easily add a custom field with a checkbox and then run a small snippet one the save/update action to set the comments preferences.

    Stiofan

    #381784

    Andrew Merritt
    Expired Member
    Post count: 29

    Thanks Stiofan,

    To insert the checkbox field it not a problem. But I don’t know how to “run a small snippet” can you please help me ?

    Regards,
    Andrew

    #381804

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Set is up and then give me wp-admin in a private reply and i’ll give you the code snippet.

    Thanks,

    Stiofan

    #381809

    Andrew Merritt
    Expired Member
    Post count: 29
    This reply has been marked as private.
    #381884

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have added a code snippet for you now, please test it, it is also below for future reference

    Thanks,

    Stiofan

    #382058

    Andrew Merritt
    Expired Member
    Post count: 29

    Hi Stiofan.

    I just test it and it works perfectly. I appreciate your outstanding support..

    Best Regards,
    Andrew

    #382115

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Andrew,

    You are welcome, feel free to leave us a review if you have not already, it helps us grow! 🙂
    https://wordpress.org/support/plugin/geodirectory/reviews/?rate=5#new-post

    Thanks,

    Stiofan

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket