Login Redirect – Custom Template with Parameters
-
I have several custom template pages that take in some parameters, for example:
https://mywebsite.com/page-slug-name/parameter1/parameter2/
The template has code that will display a warning message if a user tries to access the page without logging in:
if ( !is_user_logged_in() ) echo 'You must be logged in to access this page.';
However, what is happening is that when the user does log in (using the WP-Members Login widget), they are redirected back to the page, except the parameters are gone. So they end up here:
https://mywebsite.com/page-slug-name/
How can I make it so that after login in they are redirected back to the same page, with the same parameters?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Login Redirect – Custom Template with Parameters’ is closed to new replies.