• I have a site, and I’ve looked for weeks on a solution to this problem.
    I will post an entry and make a judgement call on whether I want the comments open. Usually I don’t, but sometimes I do.
    Currently, when I turn the comments off, there is a message: “Sorry comments closed at this time” along with all the other comment stuff.
    When I turn the comments off, I would like the entry page to be totally without any mention of comments. I’d like the entry to simply end. No mention of comments.
    Is this possible? Or am I being dense and overlooking something obvious?
    I realize I could take out the comment tag in the template, but then I couldn’t activate comments for certain selected entries.
    https://www.pikemurdy.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s possible. Let me go look something up and get back to you.
    Tg

    Thread Starter pikemurdy

    (@pikemurdy)

    Well, firstly you guys are great. You replied much faster than I anticipated.
    Unfortunatly neither solution did the trick exactly. But it’s my fault, because I wasn’t quite clear in my initial request.
    The Smart Comments Plugin–as far as I could tell simply switched the “comments” link on the bottom of each post off. Which is handy, but not exactly what I was looking for.
    The bit of code that was presented almost worked. The unfortunate thing is, that if the comments are turned off after comments have been made (I turn them off after 28 days) none of the previously made comments would show. All of the comments disappeared.
    But I did find a solution, in case you’re curious: I edited the wp-comments.php file.
    I made it look like this (hope this makes sense):
    Code that involves how many comments were made and all the comments and what not.
    <?php if ('open' == $post-> comment_status) { ?>
    Code that involves the “forms” and “Leave a Comment!” statements.
    <?php } ?>
    And it worked.
    But I wouldn’t have guessed how to do this without your help.
    Thanks

    The original solution <?php if ($cat=1) { ; ?>
    <?php trackback_rdf(); ?>
    <?php if(is_single()) include(ABSPATH . 'wp-comments.php'); ?>
    <?php }; ?>

    worked perfectly for me. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comments Section to Disappear When Not in Use’ is closed to new replies.