GOAL: Develop a password-protected user directory without a membership plugin. The login credentials are the same for everyone.
QUESTION: Will this strategy keep the info private, or am I missing something?
Create a custom post type with options:
'public' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => false,
create a password-protected page with a custom page template, displaying the custom post type query (the list of addresses).
add a password form to the custom page template, like so:
global $post; get_header(); if ( ! post_password_required( $post ) ) { // … } else { echo get_the_password_form(); }
Additional Notes:
- Custom Post Type paired with Advanced Custom Fields will set up fields for address, phone numbers, names, etc.
- An editor (or two) will keep the directory up to date