How do I remove password protection for logged in users?
December 28, 2009 1:06 PM   Subscribe

How can I make password protected posts visible to logged in users, but still require a password from guests, in Wordpress 2.9?

For example, I have a password protected post on my blog. I want it to be visible to all logged in users, just like any other post, but I want not-logged-in people to have to enter a password to view the post.

Logged in user: sees the post as if it wasn't protected in any way.
Guest: sees the password box on the post and is then able to view the post after adding the password.

How can I do this?
posted by Solomon to Computers & Internet (2 answers total)
 
Response by poster: Nope, sadly. When a password has been entered, it's saved in a cookie which persists even having logged out. But I want logged in users not to have to enter a password twice (or maybe more times, depending on how many password protected posts there are).
posted by Solomon at 1:28 PM on December 28, 2009


or maybe more times, depending on how many password protected posts there are

Just FYI, once the password has been entered, all users can see all PW-protected posts (provided it's always the same password of course) until the cookie expires. So while logged in users will have to re-enter the PW occasionally, they do not have to do so for every single post they read.

And I don't know the answer to your question, of course, tho I have no doubt it's possible thru some if logged in then blabla, else bla php wizardry. Yes, I suck at php.
posted by ClarissaWAM at 1:39 PM on December 28, 2009


« Older Question about snow driving in MN/WI.   |   Pentagon proposal to install "Address the... Newer »
This thread is closed to new comments.