Arrow

Redirect to post | Peter's Login Redirect | Forum

Back to the login redirect plugin page
 
Current User: Guest
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Redirect to post

Reply to Post Add a New Topic
UserPost

4:02 am
August 9, 2010


Jony

Guest

hi first of all thanks for such a great plugin , my problem is that when i redirect any specific user such as 'Editor' it redirects perfectly but if any user having role of 'editor' need to comment on any post after login redirect back to that post it is redirected to the page i redirected it previously,i need to redirect specific role user to specific page when he log in like "wp-login" not when he needs to comment on any post ,is their any way to solve this problem using this plugin for e.g when any user having role of 'editor' login it is redirected to http://www.example.com/?p=7 but when that user login to comment on any post i need to redirect back to that post instead of http://www.example.com/?p=7 ,thanks a ton

10:07 pm
August 9, 2010


Peter

Admin

posts 732

In the function "redirect_wrapper" in the plugin, you could add this code after the first "if" statement:

if( admin_url() != $redirect_to )
{
return $redirect_to;
}
Reply to Post

Reply to Topic:
Redirect to post

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
1 + 9