Viewing 5 replies - 1 through 5 (of 5 total)
  • can’t you just go back in admin panel to the post, then click edit… and uncheck the “allow comments” box?

    Thread Starter clay

    (@clay)

    I don’t want to disallow comments though- I only want to not display the comment form and data in certain instances

    Thread Starter clay

    (@clay)

    Or even if I can set it so that when viewing individual posts it displays a link to display the comment form

    Thread Starter clay

    (@clay)

    I got it-
    Added an if/else statement which matches the post I don’t want to display the comments on- then I modified the wp-comments-popup.php file so when ‘leave a comment’ is clicked it loads what you would normally see on an individual entry
    <?php
    if ($id != 9) :
    include(ABSPATH . 'wp-comments.php'); ?>
    <?php else: ?>
    <div class="feedback">Leave a Comment</div>
    <?php endif; ?>
    </div>

    Thread Starter clay

    (@clay)

    Scrapped the if/else statement and just made every entry have a ‘leave a comment’ link which points to the comment page

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide Comment form on individual post’ is closed to new replies.