WordPress.org

Ready to get started?Download WordPress

Forums

Stay on the same page after login (7 posts)

  1. Shripad
    Member
    Posted 1 year 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

  2. deepbevel
    Member
    Posted 1 year ago #

    <?php wp_login_form();?>

    keeps me on the same page..

    You could use it in your sidebar or a php widget.

  3. Shripad
    Member
    Posted 1 year ago #

    hi deepbevel,
    Thanks for the reply; quick question though, should I paste this code in the sidebar.php file?

    Thanks,
    Shripad

  4. deepbevel
    Member
    Posted 1 year ago #

    Yes, try it there, you may have to move it around.
    Otherwise get a php widget plugin, they're very useful.

  5. Shripad
    Member
    Posted 1 year ago #

    Thanks a lot, I ll try and get back to you if I face further problems.

  6. Shripad
    Member
    Posted 1 year 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.

  7. deepbevel
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags