Support » Fixing WordPress » How to make comment invisible until APPROVED

  • 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’) : ?>
    <?php endif; ?>

    thanks a lot!!

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)
  • The topic ‘How to make comment invisible until APPROVED’ is closed to new replies.