Home > Net >  WordPress Password Protected Custom Page Template
WordPress Password Protected Custom Page Template

Time:06-09

I am having a custom page template on WordPress and also the Password Protected plugin installed. When I set the page to password protected, nothing happens and the page is still visible for all users.

This is how I set Password Protected

CodePudding user response:

Could you share some more info about the page template?

EDIT:

You can try pasting something like this after your get_header() function in the template:

if ( post_password_required() ) {
    echo get_the_password_form();
    get_footer();
    return;
}
  • Related