The easier way can be have a group of users called teachers
and give just the teacher’s group the permission to visit the page.
There are many plugins for permission handling and grouping users so you’ll just need to search WordPress plugin repository. Just an example: groups plugin
Another possible answer can be : multi page password protection (As I wanted to mention the answer owner, I put the link here!)
Related Posts:
- wordpress redirect after password reset
- Password protecting a page
- How to save Admin FTP password
- How can I change the default wordpress password hashing system to something custom?
- Conditional to test if post has password protection enabled
- Bypass password protected posts via GET variable
- Check the password of a user
- Create a USERNAME and PASSWORD protected WordPress page
- Why do generated passwords start/end with spaces?
- Duplicate hash method for password in .NET
- Hide password protected posts
- Safe to store SMTP password in wp-config.php?
- Access code/password only restricts page access, no user registration..?
- how can I check if I have sitemap?
- PasswordHash not found in namespace
- Force all users in MU to change their passwords
- Reseting admin password through PHPMyadmin fails
- Forgot password not working
- Password reset message – change the network_home_url( ‘/’ )
- Redirect a password protected page?
- WordPress: force users to change password on first login
- Can’t login to wordpress despite changing password to something known directly in MySQL or using “Password Reset by Email” feature
- Lost password link redirects to my-account/lost-password/,how to fix it back to default lost password
- Password protect custom template
- Custom password generator for users
- Where is the reset password key stored/generated?
- Password protecting template, secured content not showing if even password is right
- How validate usernames/passwords against WP’s database?
- WordPress reset password returns invalid key
- User password field is empty
- Password reset bug? – “Sorry, that key does not appear to be valid”
- Add image tags to native WordPress XML Sitemaps
- How to set minimum length and error message for password recovery?
- Why is resetting the WordPress Users password not working?
- post_password_required() not recognizing cookie set with correct password
- How Authentication in wordpress works? wp_authenticate_username_password()
- Password protect the site (without htaccess or membership)
- Password protection for page template
- how to remotely check a username / password from within a plugin
- Enable Update button only when password is shown strong
- Adding parameters to password reset key
- Custom password form allows unlock two posts with the same password
- Multilingual XML sitemaps when using qTranslate-X
- Generating the password reset link automatically
- Password protect pages – allow more than one password
- password recovery key is invalid on custom reset
- Like to store multiple passwords in db table wp_posts field post_password?
- Password Protected Post is invisible until you login
- Send password to user instead of reset password link
- Protect Passwords in wp_users with stronger protection than MD5
- Custom form for password protected page
- How to Remove or Deactivate “Application Passwords” in WordPress
- How to change “Reset Password” text on submit button
- Customize retrieve password message
- How to recover password from a user
- WordPress site running on Yoast not being indexed into Google News [closed]
- WordPress admin creation through phpmyadmin not working
- How to show my wordpress admin username & password?
- Can’t alter $lostpassword_url
- current user’s password check
- Change password fields
- lostpassword_redirect filter is not used
- Ask logged in user to re-enter password to access page “x”
- Password Protect or IP to access under development WordPress site otherwise shown a placeholder page
- 3 different ways to check the number of pages on site gives 3 different answers
- Password-protected page redirecting to frontpage when I enter the password
- 2 accounts under same email preventing me from loging in
- How would I create a Password Protected Page with Content on it?
- Site only for users authenticated by different PHP application
- Should /wp-includes/js/* folder be blocked in robots.txt file for a WordPress website?
- I need help with wp_lostpassword, wp_register and wp_login_form
- Automatically change the page password for more than one page
- I can’t recover my password
- Frontend custom forgot password page
- Cannot get function.php code to work to remove Lost Password link on live site
- Problem with login / reset password links in users emails
- How to set password from frontend if have activation key and user login in url in wordpress?
- Allow users from my ASP.Net MVC site to access my private WordPress site
- How do I display the password field on the WordPress user registration screen?
- WordPress Protected Page Redirects to PDF
- Bypass a WordPress Password Protected Post or Page via a URL
- Custom page password recovery
- Can I use core passworded page/post functions outside of wp-login.php?
- Is it possible to display newly generated password after wp_generate_password()?
- Password protect wp-login.php
- forgot password
- Revise my keyword but still cannot login
- Is it possible to have users register without having a password?
- Password Protection for posts and pages [duplicate]
- Reset Password – change from name and email address. It stucks at admin. Want to change it to info
- how to add urls dynamically into the sitemap
- WordPress reset password button not working
- check if post is set to “password protected”
- Override the default password length when creating or updating a user profile
- Why can’t I create an Application Password?
- ‘random_password’ filters not taking effect
- FTP Password (not private key-value pair) for EC2 Instance
- How to Disable Pre-population of Password on Password Reset
- Yoasts plugin sitemap not detecting correct category URL format
- Bypass a WordPress Password Protected Page via url