This topic has 5 replies, 2 voices, and was last updated 8 years by Kieran_SQ.

  • Author
  • #175289
     ysfcn
    Participant

    How can I redirect users who log onto the page in the picture.

    #175291
     Kieran_SQ
    Moderator

    Hi,

    There is a great plugin in the WordPress plugin repository called Peter’s Login Redirect that will be able to handle more complex redirects, like the one you wish to use, with ease. You can find the plugin here https://wordpress.org/plugins/peters-login-redirect/.

    Once you have the plugin installed please go to Settings > Login/Logout Redirects > Scroll to: ‘Specific roles’. In the dropdown select ‘Subscriber’ (if you have changed the default role to something else please select your desired alternative), in the URL field enter your URL in the below format https://www.mydomain.com/members/[variable]username[/variable], set the logout URL if desired, click ‘Add Role Rule, and then save. If the name of your members page is set to anything other than ‘members’ please adjust the URL you use to account for the name of your page.

    Now when a user with the role subscriber logs in they will be redirected to their own profile.

    Hope this helps,

    Kieran.

    Updated for formatting issue

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #175294
     ysfcn
    Participant
    #175300
     Kieran_SQ
    Moderator

    Hi,

    It seems there was a formatting issue with my post above please accept my apologies. I have inserted the correct method again below.

    http://www.mydomain.com/members/[variable]username[/variable]

    If the path to your members profile is different than the one stated above please adjust to suit your needs.

    Very sorry!

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution
    #175303
     ysfcn
    Participant

    problem solved. Thank you for your help.

    #175304
     Kieran_SQ
    Moderator

    Fantastic, glad it helped, and again my apologies for the formatting issue.

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?