Shripad
Member
Posted 5 months ago #
Hi,
I have a wordpress site with buddypress plugin installed for forums.
Whenever a user logs in, he is redirected to the homepage and he has to navigate all the way back to the page he was looking at. Is there a way I can make the user to stay on the page even after logging in.
Thanks,
Shripad
<?php wp_login_form();?>
keeps me on the same page..
You could use it in your sidebar or a php widget.
Shripad
Member
Posted 5 months ago #
hi deepbevel,
Thanks for the reply; quick question though, should I paste this code in the sidebar.php file?
Thanks,
Shripad
Yes, try it there, you may have to move it around.
Otherwise get a php widget plugin, they're very useful.
Shripad
Member
Posted 5 months ago #
Thanks a lot, I ll try and get back to you if I face further problems.
Shripad
Member
Posted 5 months ago #
I tried your solution but it does not seem to work, there are plugins which redirect you to a page after login, but finding one which keeps you on the same page is difficult.
I googled, only found one other user with the same request but no responces to their thread.
Perhaps something like:
http://wordpress.org/extend/plugins/sidebar-login/