You could save the HTML files in the theme with .php extensions and a short comment at the top naming each template, then either put the check-for-certain-role conditional within the php files and apply each template to a Page you create in wp-admin; or create a custom post type, apply each template to a CPT you create in wp-admin, and keep the which-role-can-read logic within the CPT registration.
Related Posts:
- WordPress auto login after registration not working
- Authenticate user using Hashed Password in MySQL Query and C#
- My custom page template with is_user_logged_in() does not detect that I’m logged in
- Authenticate with a Rails app?
- WordPress Authentication Middleware
- Rest API code to get ID of current user not working: get_current_user_id() gives 0
- How can I authenticate user credentials against a WordPress instance?
- OAuth 2 and saving the authenticated user
- WordPress Login Customization for External Authentication
- Allow users to create post without logging in?
- New user form rejected because “passwords don’t match”—but there’s only one password field
- REST API: wp_get_current_user not working on second call
- How do you manage your pages or functions that require logged-in users?
- How to verify which WordPress user requested the API in ASP .NET Core?
- Need to use WordPress page as authentication for different service
- How to allow access based on the user meta flag
- Authentication between two different sites using the WordPress login cookie
- Use WP cookie to authentificate user on an external app
- The same session information for peer users on two different WordPress servers
- Disable emails for new user registration
- Check for empty username or password on login
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- Securely log in a user without a password using a link?
- How to track all users logged into a site?
- How to authenticate/verify login credentials & check for user meta without logging in?
- How do I display logged-in username IF logged-in?
- Difference between update_user_meta and update_user_option
- Make display name unique
- How to get WordPress Username in Array format
- Display user registration date
- Allow up to 5 Concurrent Login Sessions
- Show admin bar only for some USERS roles
- How to hide “Filter user list” from “All Users” screen
- How to create a template for a custom URI associated with the user
- How to check user role without using current_user_can()
- How do i auto approve new user?
- BuddyPress | Check if user is in current group [closed]
- Pre-populate Username Field
- Where to Store Custom User Fields
- Redirect after User Activation [closed]
- How to keep track of user logins?
- Mass delete spam accounts
- Get all commenters on a post
- WP_User->add_role producing unexpected results
- Adding tags and inputs to a user’s profile
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- Custom style on profile options page
- Best way to have an per-user customized private section
- How to query users who have empty first_name?
- Post as someone else
- How to make user accept license agreement before download
- Does wp_delete_user() remove all user content?
- wp_login_form() passing user ID into URL on redirect?
- Users: List A to Z, for Users
- WPML Default Language User Meta [closed]
- Search Users base on meta_value & meta_key
- Favorite taxonomy archive page?
- Removing all trace of member profiles
- WordPress API for search
- Fix permissions for users role
- How can I allow an User to publish only 5 posts per month?
- How to stop redirect if user is already on correct page (Using Case Switch)
- Where are $current_user->allcaps set?
- How to activate the user search
- How change user type from contributor to author
- How to allow registered users to submit the form only 5 times per day?
- Preventing user enumeration: which logic is better?
- How can I do a url redirect to include a wordpress username?
- WordPress current month users
- Allow Users to Modify Some Values of Assigned WordPress Pods [closed]
- Can I Create a Second Admin Level User Role?
- Custom registration and pending approval
- Let logged-in users use radio buttons (yes and no) to exclude their author profile from the user listing
- Make new users automatically approved
- Adding fields to the “Add New User” but the form data not saved into DB
- How would I restrict certain user levels from editing categories
- How can I set wp_dropdown_users so that it shows only authors?
- What does “link” refer to when you delete a user?
- set automatically email address for WordPress users
- Restricting wordpress login sessions for a web app
- change user password REST API
- Find count of WordPress users by role and search string for user name
- How do I add profile fields in specific section?
- fine-grained capabilities for user related capabilities
- Users activity history
- How to destroy all user sessions via WP-CLI
- Is a list of user names or IDs in a custom profile field the best way to create a followers list?
- Custom User Role: Can Edit Own Page, Cannot Create New
- How to restrict Admin from creating new users from Add new user screen in dashboard to only of one domain?
- Edit dashboard based on user ID
- is_user_logged_in() not working after domain change
- Designing a member area on my site
- Link to Authors blog posts
- view and update form only for registered users
- Redirect based on log-in status per JavaScript
- Create users from frontend without password
- How to get user contact info
- Remove @gmail.com from WordPress username
- How to create a specific role to manage users
- Export user data from Squirrly’s Starbox plugin?