WordPress Simple Membership After Login Redirect add-on helps you set up a redirect login page for your members.
Last Updated: January 8, 2018
Latest News: I have added more information and troubleshooting tips.
The following instructions shows you how to set up an after login redirect landing page for your members. This is important if you want to create a special page for your members based on their membership level.
WordPress Simple Membership After Login Redirect Steps
Note: In Simple Membership version 3.2.5, a new feature was added to enable redirection to the last page after login (where they clicked the login link).
Step 1 ) Go to WP Membership -> Add-ons to install Simple Membership After Login Redirection add-0n and make sure you activate the add-on. See image below.
Step 2 ) Go to WP Membership -> Membership Levels and check to make sure the add-0n is added to all your members level’s. See image below.
Step 3 ) Create a new page, post or simply add the URL of the page you want the members to be redirected too. I created a new page and named it Free Membership Page. I made sure I protected the page and only allowed the members corresponding to this page. In this example only the Free Level members can have access to this page.
- Yes, Protect this content
- Free Level
Step 4 ) The following image shows you the URL path of the page added to After Login Redirection Page field. Make sure you click on Edit Membership Level button to save your changes.
When the members that belong to the Membership Level log’s in, they will be redirected to the URL page you added to the level. In this example I added the following URL, http://localhost/wordpress361/free-members-page/.
Step 5 ) If you want your members to return to the same page they landed on after they click on the login link, then make sure you enable the following Enable Redirect to Last Page. This can be located under WP Membership -> Login Redirection -> Enable Redirect to Last Page. See image below.
Note: The redirection to the last page ONLY triggers if you click on the “Login” link from the protected content message that is shown inside a protected post/page. If you also have the following addon Simple Membership Custom Message installed and you alter the default message, the redirect to the last post will not get triggered and will not work.
(The following was quoted by admin in the forum.)
The login redirect addon LOOKS for the special login link that the core plugin creates. It then replaces that login link with an extra parameter. If you use the custom messages addon to override the standard protection message of the plugin then the login addon can’t add the extra parameter. This is one of those features where you need to pick one (You can’t get both).
Step 6 ) Some have reported the following problem. When a user logs in and it is set to redirect to the previous page, the URL they are sent to excludes the ‘punctuation’ e.g. httpswww.mysite.org.ukmember-list. The “punctuation” has been converted to https%253A%252F%252Fwww.mysite.org.uk%252Fmember-list%252F. The %figures are then ignored in the redirect so “punctuation is removed”.
Step 7 ) If you run into issues using this plugin/addon, you might like to read the following solution Back to page after login posted in the support forum.
Click on the following URL Form Builder to continue.
If you have any questions please let me know. I will be updating this tutorial from time to time.
Simple Membership Plugin Tutorial List: