• Resolved zericoni

    (@zericoni)


    After a member of a Group logs in, I want to redirect them to a specific page for their group. The process would be:

    • A member from Group A logs in via [groups_login] shortcode and is automatically redirected to the Group A page.
    or
    • A Group B member logs in and is automatically redirected to the Group B page.

    Is there a way to do this?

    https://wordpress.org/plugins/groups/

Viewing 3 replies - 1 through 3 (of 3 total)
  • gtsiokos

    (@gtsiokos)

    Hi zericoni,

    The redirect after login can’t have a group condition but if you use the following shortcodes on your login page, each group members will only see the link to their group page.

    [groups_login]

    [groups_member group=”Blue”]
    Only members of the Blue group can see this.
    Blue Group Members page link
    [/groups_member]

    [groups_member group=”Yellow”]
    Only members of the Yellow group can see this.
    Yellow Group Members page link
    [/groups_member]

    Kind regards,
    George

    Thread Starter zericoni

    (@zericoni)

    Hello George,

    Thank you so much! This works perfectly!

    On a related topic, when Group users logout, by default they are returned to the WordPress login page rather than the Groups login page. Is there a way to prevent them from seeing the default login page, because if they try logging in there, their specific page link won’t be present and they won’t know where to go? Is there a shortcode to help with this?

    Best Regards,
    Eric

    Thread Starter zericoni

    (@zericoni)

    George, I just answered my own question by testing [groups_logout], which does the trick. So, please disregard my previous question.

    Many thanks for putting me on the right path!

    Very Best,
    Eric

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Redirect Group Users After Login’ is closed to new replies.