Could we help you? Please click the banners. We are young and desperately need the money
You can set a page to password-protected if you are using a default wordpress theme. These themes are using the "the_content()" function, which is needed for a page to make it password protected. Our themes are not using "the_content()" function. That's why password-protected is not working on our themes.
To enable password-protected pages on our themes, we have to add some code to our template.php. You have to check for the password_required property in the way down below:
global $post; get_header(); if(post_password_required($post)): echo "this is password protected"; echo get_the_password_form(); endif;