automatically password protecting posts
Is there a function or an argument that I can include in my code that would automatically password protect my posts in a certain category. I am trying to eliminate having to select password protect and enter a password. In my category these will all be password protected with the same password.
I am using a plug-in that will allow all password-protected to automatically have the same password. So I just need to figure out code that will make all posts in a certain category password-protected.
The reason I am trying to eliminate this step of having to go in and select password protect and enter a password is because I going to post via e-mail. If can’t eliminate these steps then after I e-mail my post I have to log into WordPress and make these changes. It defeats the purpose of posting via e-mail.
I did find this function <?php post_password_required( $post ); ?> in the codex. I am not sure how to use it or even where to place it.
I thank you in advance for any help.
- The topic ‘automatically password protecting posts’ is closed to new replies.