Title: Comments not readable/writable in password-protected post
Last modified: August 19, 2016

---

# Comments not readable/writable in password-protected post

 *  [bookyeti](https://wordpress.org/support/users/bookyeti/)
 * (@bookyeti)
 * [18 years ago](https://wordpress.org/support/topic/comments-not-readablewritable-in-password-protected-post/)
 * Hello all, I’m hoping someone can help me out.
    I recently made a post which 
   I’ve password-protected, and yet even when I’m logged in and have entered the
   post’s password, it’s not showing the comment submission box.
 * All that shows is the text: “Enter your password to view comments.”
 * The comment counter says they are 7 comments, and yet I can’t read them from 
   my blog…but yet I can read them from the comment admin panel.
 * Is this a problem someone has come across. I’ve searched the support database
   but haven’t found anything that has dealt with this problem. Could someone help?

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

 *  Thread Starter [bookyeti](https://wordpress.org/support/users/bookyeti/)
 * (@bookyeti)
 * [18 years ago](https://wordpress.org/support/topic/comments-not-readablewritable-in-password-protected-post/#post-762133)
 * So…it seems as though others (who have the protected post password) can read 
   and comment, but I can neither read or add comments to my post. How odd!
 * Anyone?
 *  Thread Starter [bookyeti](https://wordpress.org/support/users/bookyeti/)
 * (@bookyeti)
 * [18 years ago](https://wordpress.org/support/topic/comments-not-readablewritable-in-password-protected-post/#post-762228)
 * Still haven’t solved the mystery…
    Has anyone come across a similar problem?
 *  [wordpress_orgdsbaileycom](https://wordpress.org/support/users/wordpress_orgdsbaileycom/)
 * (@wordpress_orgdsbaileycom)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/comments-not-readablewritable-in-password-protected-post/#post-762324)
 * In your comments.php file of your theme, try changing $cookiehash to COOKIEHASH
   as below.
 * From:
    `if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { //
   and it doesn't match the cookie?>`
 * To:
    `if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { //
   and it doesn't match the cookie?>`

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

The topic ‘Comments not readable/writable in password-protected post’ is closed 
to new replies.

## Tags

 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [password](https://wordpress.org/support/topic-tag/password/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [wordpress_orgdsbaileycom](https://wordpress.org/support/users/wordpress_orgdsbaileycom/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/comments-not-readablewritable-in-password-protected-post/#post-762324)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
