Subscriber Only Page Not Logged In – Redirect to Login
-
This question seems to be tired on here but I have yet to find a correct answer.
I have tried a variety of plugins and currently using subscribers only to block page from non-students with a log-in redirection to that page when they are logged-in.
I want students when they ARE NOT logged in, and try to access the page to be directed simply to wp-login
WordPress has function
<?php auth_redirect() ?>
but alone it has shot php error.I have php enabled on page edit so I want to be able to throw in something like
if not logged in redirect wp-login
Thanks!
- The topic ‘Subscriber Only Page Not Logged In – Redirect to Login’ is closed to new replies.