Password protection for page template
This is because password protection applied on get_the_content() function. And you are not using it instead you’ve written your own custom loop. So you can alter the code before loop and check if page is not password protected using function post_password_required() and then display form using get_the_password_form() else display loop. Example:- if ( post_password_required( get_the_ID() … Read more