-
Author
-
September 30, 2017 at 21:39 #175289ysfcnParticipant
How can I redirect users who log onto the page in the picture.
Attachments:
You must be logged in to view attached files.September 30, 2017 at 22:04 #175291Kieran_SQModeratorHi,
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 solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 30, 2017 at 22:51 #175294ysfcnParticipantthanks for your help but there is a problem with https://www.mydomain.com/members/%5Bvariable%5Dusername%5B/variable%5D url.
when ı use http://localhost/spturkey/wordpress/uyeler its ok. its working successfully.
but http://localhost/spturkey/wordpress/uyeler/%5Bvariable%5Dusername%5B/variable%5D doesnt work.Attachments:
You must be logged in to view attached files.September 30, 2017 at 23:16 #175300Kieran_SQModeratorHi,
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 solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 30, 2017 at 23:33 #175304Kieran_SQModeratorFantastic, 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 solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.