Home Forums Plugin Support WP User Frontend Pro Redirect to dashboard after login

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  Nayem 3 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #70847

    Jonathan Barrett
    Member
    Post count: 13

    How can I redirect a user to their dashboard after they have logged in. At present, after they have logged in, they are redirected to the home page.

    Thanks

    #70881

    Nayem
    Moderator
    Post count: 6480

    Hello,

    You can use this plugin to redirect your user to a specific page- https://wordpress.org/plugins/wpuf-login-redirect/.

    Thanks.

    #70966

    Jonathan Barrett
    Member
    Post count: 13

    I have installed and activated the plugin and set the redirect page to Dashboard. However, after login the user still defaults to the home page.

    I think I can see where the problem might lie. I have set the permalinks to ‘descriptions' so I can easily see which page I'm being directed to.

    In this screenshot http://screencast.com/t/MfP0jOtrg7u it is calling ‘6'. It does this whether the redirect plugin is activated or not. I'm guessing there is no ‘6' so WP is defaulting to the index.

    #70967

    Nayem
    Moderator
    Post count: 6480

    You can try with the permalinks post name.

    Otherwise you can use this custom code-

    add_filter('wpuf_login_redirect', 'login_redirect');
    function login_redirect($redirect){
    
     $redirect =	home_url('/your own page') ; 
    return $redirect;
    }
    #71015

    Jonathan Barrett
    Member
    Post count: 13

    Custom Code works fine. Maybe include for the next version?

    Thanks

    Jon

    #71061

    Nayem
    Moderator
    Post count: 6480
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Redirect to dashboard after login’ is closed to new replies.