Viewing 4 replies - 1 through 4 (of 4 total)
  • SVD85,

    Try adding the code where the comments would be displayed. For example within the single.php template (using twentyten theme as an example) line 62, replace
    <?php comments_template( '', true ); ?>
    with

    <?php if (is_user_logged_in())
             comments_template();
           else
    	 echo "You can see comments when you have signed in.";
      ?>

    Thread Starter SVD85

    (@svd85)

    In the single.php file, I ran a search for “comments” and only found this line: <?php comments_template(); ?>

    Would this be the same?

    Thanks for your help!

    SVD85,

    That’s it. Give it a try.

    Thread Starter SVD85

    (@svd85)

    IT WORKED! THANKS AGAIN!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘NEED HELP – Hide comments from anonymous users’ is closed to new replies.