Sunday, August 10, 2025

Password Protected Pages

One my goals as webmaster is to give my club's board members the up-to-date data they need from our Participants Database without using the WordPress interface. When an authorized someone needs data that's in our database (or could be), I create a page using pdb_list to get the data and, to safeguard member privacy, password protect the page using the page visibility attribute.

Page Visibility
WordPress provides built-in visibility options for pages to control who can access them. These options are:

  • Public: The default setting, making the page visible to everyone
  • Private: Makes the page visible only to logged-in users with specific WordPress roles (Administrators and Editors)
  • Password Protected: Requires a password to view the page content
How to Password Protect a WordPress Page

  1. Find and open the page for editing in WordPress
  2. Locate the "Publish" box in the right sidebar of the classic editor
  3. Click on the current visibility status (usually "Public")
  4. A dropdown menu will appear with the visibility options
  5. Select "Password Protected"
  6. Enter the desired password
  7. Click "OK"
  8. Click "Update" or "Publish" to save the changes
Note 1: You can use the above steps at any time to change the password.

Note 2: You can set up the same password of more than one page if that suits your needs.

Note 3: For password-protected pages, visitors will be prompted to enter their page-specific password before they can view the content. No password, no access.