The “Members: Login Form” widget will redirect the user to whatever page they’re on when they log into the site.
Actually, technically, the widget doesn’t do this. The widget just calls wp_login_form()
, which is a WordPress function for handling the login form. It handles the redirect and everything else.
Not really sure I follow your comment. Can we use the widget to pass the current page so that the login redirects to the current page after the user logs in?
What I’m saying is that the behavior you want is how it works out of the box.
The widget is just a wrapper for WP’s login function. That function redirects to the current page after it logs the user in.
If you really want to keep specific users out of the admin though, you might want to look into a plugin like this: https://wordpress.org/plugins/remove-dashboard-access-for-non-admins/
Hum ok, something must be breaking on my sites then. It always redirects to the dashboard. Will have to look it up then.
Thanks for clarifying Justin.
When I click the register button or the forgot password button it just refreshes back to login page…it doesn’t take me to those pages?
When I click the register button or the forgot password button it just refreshes back to login page…it doesn’t take me to those pages?
That’s outside the scope of this plugin. You might want to post over on this forum: https://wordpress.org/support/forum/how-to-and-troubleshooting