Forums

[resolved] How to see if comments are enabled or disabled in php (5 posts)

  1. dcarmo
    Member
    Posted 9 months ago #

    Hello,

    I am just wondering how I would be able to tell if comments are enabled or disabled for a blog in php?

    Thanks

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 9 months ago #

    overall, or per post?

    comments_open();

    checks within the loop.....

  3. dcarmo
    Member
    Posted 9 months ago #

    both methods would be nice

  4. dcarmo
    Member
    Posted 9 months ago #

    Well that works as intended and looks like its not needed to see if it's shut off for the site overall. The above will just turn it off for each individual post when it is turned off site wide.

    Thanks

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 9 months ago #

    Sure, glad to help!!

Reply

You must log in to post.

About this Topic