Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Redirect depending on membership level

Simple Membership Plugin › Forums › Simple Membership Plugin › Redirect depending on membership level

  • This topic has 10 replies, 4 voices, and was last updated 7 years, 10 months ago by vadim.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • December 12, 2018 at 7:57 pm #16956
    kimbell
    Participant

    I have 3 different membership levels with each having its own page.

    I’d like to just have 1 link in the menu, ‘Members Area’, which when clicked takes the user to a login page, unless they are already logged in, then it would take them to a specific page depending on their membership level.

    I have the After Login Redirection plugin installed which works great, but once they’re logged in there is no way back to the ‘Members Area’. The menu link is currently just for the login page, so they are just shown some account details. The only way to get back to the page is to log out and log back in.

    Is there anyway I can make this work?

    December 12, 2018 at 11:04 pm #16957
    mbrsolution
    Moderator

    Hi,

    I’d like to just have 1 link in the menu, ‘Members Area’, which when clicked takes the user to a login page, unless they are already logged in, then it would take them to a specific page depending on their membership level.

    So from what you are saying, you only want a page with the name Members Area displayed in your site’s menu? Is this correct? If you have created this page, did you add this page to your menu? To understand the plugins pages structure, please check the following documentation.

    Let me know if the above helps you in any way.

    Thank you

    December 13, 2018 at 1:48 pm #16982
    kimbell
    Participant

    Thanks for the response,

    The link in the menu is ‘Members Area’

    Currently it directs to the Login page. When a person logs in they are redirected to 1 of 3 different member areas, depending on their level.

    I’m trying to figure out how I can make it so when they click the ‘Members Area’ link in the menu when they are logged in it takes them to the correct member area.

    Is there any workaround where a different link can be displayed depending on whether the person is logged in, membership level 1, 2 or 3. Or just call upon whatever redirection happens after login?

    December 13, 2018 at 8:54 pm #16985
    mbrsolution
    Moderator

    Hi, you are talking about a conditional link process. You can try the following documentation. There are a few custom PHP tweaks that might do what you are trying to achieve.

    The following addon might also work for what you are trying to achieve.

    Let me know if the above helps you.

    Kind regards

    December 14, 2018 at 7:21 am #16992
    kimbell
    Participant

    The Dynamic Menu Addon worked perfectly for what I wanted, thank you so much for your help, very much appreciated.

    December 14, 2018 at 8:02 am #16993
    mbrsolution
    Moderator

    I am happy to hear 🙂

    Enjoy the plugin.

    January 23, 2019 at 5:38 am #17215
    vadim
    Participant

    Is it possible(if the user is logged in) to always redirect them to different homepage than non-logged in users? Not only after login but anytime they are logged in.

    January 23, 2019 at 5:45 pm #17217
    The Assurer
    Moderator

    Are you thinking of something like a “persistent redirect,” whereby; as long as the login cookies are valid, they get redirected, if they revisit the home page?

    January 23, 2019 at 7:04 pm #17218
    vadim
    Participant

    Exactly! Is it possible?

    January 23, 2019 at 7:56 pm #17219
    The Assurer
    Moderator

    The “easy way” is to use Partial Content Protection on the home page:

    [swpm_protected visible_to="logged_in_users_only"]
    Whatever content goes here is only visible to anyone who is logged-into the SWPM system as a user (doesn't matter if his account is expired or not).
    [/swpm_protected]
    [swpm_protected visible_to="not_logged_in_users_only"]
    Whatever content goes here is only visible to a non logged user (anonymous visitors of your site will see this message).
    [/swpm_protected]

    Remember to download/install the addon!

    I realize that this is not “real redirection,” but it serves the same purpose. “True redirection,” based on login status requires you know how to do PHP programming.

    January 23, 2019 at 8:17 pm #17221
    vadim
    Participant

    that is great! thanks!

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy