WordPress page password protection is not working. Page still visible

First time trying to use the password protected visibility option on a WordPress page, and it seems to do nothing. After adding a password, if I view the page it never asks for a password. Different browsers, clearing out all temporary files, logging out of wordpress admin, nothing makes a difference. Even logged into a remote computer that had never been to the site or admin and opened the page without any prompt for a password. Has anyone else ran into this issue? My Google skills are failing me.

Related posts

Leave a Reply

2 comments

  1. Seems like the theme has to support this functionality. I found out that you have to use something like this to make it work

    <?php 
        if (post_password_required()) { 
            echo get_the_password_form();
        } else {
            echo "<p>Protected content</p>";
        }
    ?>