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?
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?
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
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.
posted by Solomon at 1:28 PM on December 28, 2009