Community Support Forums — WordPress® ( Users Helping Users ) — 2010-07-14T16:34:26-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=375 2010-07-14T16:34:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=375&p=1542#p1542 <![CDATA[Re: Can you set login welcome page to the referring page?]]>

On the site I'm building, there's a login/logout button on the top right of each page. When a user logs in, I'd really like to just take them right back to the page they were at when they clicked 'login.' I just haven't the foggiest idea what the replacement code might be for that.

Is this possible?

Absolutely. Most WordPress login links and/or forms... are designed to communicate with the /wp-login.php file. The wp-login.php file can also accept a parameter ( redirect_to ).

So you just need to do something like this:
Code:
<a href="http://yoursite.com/wp-login.php?redirect_to=http://yoursite.com/some-specific-page/">Login</a>

Statistics: Posted by Jason Caldwell — July 14th, 2010, 4:34 pm


]]>
2010-07-13T10:33:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=375&p=1512#p1512 <![CDATA[Can you set login welcome page to the referring page?]]>
On the site I'm building, there's a login/logout button on the top right of each page. When a user logs in, I'd really like to just take them right back to the page they were at when they clicked 'login.' I just haven't the foggiest idea what the replacement code might be for that.

Is this possible?

Statistics: Posted by mkrank — July 13th, 2010, 10:33 am


]]>