WordPress.org

Ready to get started?Download WordPress

Forums

How to make comment invisible until APPROVED (2 posts)

  1. cocopops
    Member
    Posted 4 years ago #

    Hello! I have an issue here, I dont know how to make the comments invisble for EVERYONE (including the person who wrote the comment) until it is approved? On my blog, the comment is visible for the person who just wrote it with a following text that says: "This will not be published until it is approved". But I dont want that either, I want it to be invisible for EVERYONE? how is that done? PLEASE SOMEONE HELP ME OUT!

    Heres a sample of the code from comments.php:

    <?php if ($comments) : ?>
    <img src="/saniaclaus/wp-content/themes/hotairballoons/images/commentbreak.gif" />

    <!--<h2 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h2>-->

    <?php foreach ($comments as $comment) : ?>

    <b>" target="_blank"><?php comment_author() ?></b>
    <?php if ($comment->comment_approved == '0') : ?>
    YOUR COMMENT WILL NOT BE PUBLISHED UNTIL APPROVED
    <?php endif; ?>

    thanks a lot!!

  2. Samuel B
    moderator
    Posted 4 years ago #

    only a logged in admin can see the comment
    to test this
    create a dummy subscriber
    log the admin out
    clear site cookies
    log in the dummy subscriber and make a comment

    or have a friend try it from another computer

Topic Closed

This topic has been closed to new replies.

About this Topic