Title: NEED HELP  &#8211; Hide comments from anonymous users
Last modified: August 19, 2016

---

# NEED HELP – Hide comments from anonymous users

 *  [SVD85](https://wordpress.org/support/users/svd85/)
 * (@svd85)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/hide-comments-from-anonymous-users/)
 * Trying to find a plugin so I can hide anonymous users from being able to read
   the comments. I would like to set it up so they would have to login as a subscriber
   in order to read the comments.
 * I found the following but not sure what to do with the code, or if it is what
   I need, since I am new at this: [http://wordpress.org/support/topic/hide-comments-for-anonymous-users?replies=6](http://wordpress.org/support/topic/hide-comments-for-anonymous-users?replies=6)
 * Any help would be greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/hide-comments-from-anonymous-users/#post-1804116)
 * 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](https://wordpress.org/support/users/svd85/)
 * (@svd85)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/hide-comments-from-anonymous-users/#post-1804170)
 * 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!
 *  [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/hide-comments-from-anonymous-users/#post-1804237)
 * SVD85,
 * That’s it. Give it a try.
 *  Thread Starter [SVD85](https://wordpress.org/support/users/svd85/)
 * (@svd85)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/hide-comments-from-anonymous-users/#post-1804275)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [SVD85](https://wordpress.org/support/users/svd85/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/hide-comments-from-anonymous-users/#post-1804275)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
