Home › Forums › Plugin Support › WP User Frontend Pro › Wrong login form This topic is: resolved Tagged: redirect, wpuf-login This topic contains 2 replies, has 2 voices, and was last updated by Nayem 3 years, 8 months ago. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts August 28, 2015 at 11:46 pm #69479 StefanMember Post count: 3 Hello folks! First of all, great plugin! I like it a lot as it makes my work much easier! However, I have an issue I do not quite see how to solve. I have two menu items that cause the user to login but should redirect to different pages: Menu “New Entry” points to a login site containing [wpuf-login] and should redirect to exymple.com/?p=1 after successful login. Menu “Edit Profile” points to login a login site containing [wpuf-login] and should redirect to exymple.com/?p=2 after successful login. Actually, I would expect some function like [wpuf-login redirect=”exymple.com/?p=2″]. Or is there another way to do this? Thanks for any help on this! Cheers, Stefan August 29, 2015 at 12:23 pm #69497 StefanMember Post count: 3 I actually found a solution. I modified login-form.php and added the following code: <?php $read_url = $_GET['wpuf_link']; if ($read_url == 'profil') $wpuf_link = '?page_id=213'; if ($read_url == 'post') $wpuf_link = '?page_id=205'; if ($read_url == 'admin') $wpuf_link = '?page_id=88'; ?> And at the bottom of the file, I changed the redirect_to hidden field to: <input type="hidden" name="redirect_to" value="<?php echo $wpuf_link; ?>" /> So now I am able to call the [wpuf-login] page and add the parameter wpuf_link with the values “profil”, “post” or “admin” to the URL and it magically redirects to those pages after login 🙂 August 29, 2015 at 12:39 pm #69503 NayemModerator Post count: 6480 Hello, I am very glad to know that you have found the solution. Author Posts Viewing 3 posts - 1 through 3 (of 3 total) The topic ‘Wrong login form’ is closed to new replies.