I hope this problem does not have too complicated of a solution. I also hope it isn't too easy so I don't feel like a fool for not figuring it out :)
On my website, (Wordpress), I have Peter's redirect plugin that redirects users after login to their specified personal page (not profile.php). This is great.
However, after leaving their page, the only way to get back to it is to type the address to the page in the address bar, or logout/login again.
Is there a way I can create a normal link, that will recognize the currently logged in user, and redirect them accordingly to their personal page?
I know this may be basic, but I have search relentlessly through various sites, and other venues to locate an answer, and cannot seem to find one. I imagine it is because I am missing a 'key' word in my search, or it is so basic no one feels it needs to be covered.
I also looked at the source code for the a fore mentioned redirect plugin to find this:
$current_user = wp_get_current_user(); $redirect_to = admin_url(); $redirect_url = redirect_wrapper( $redirect_to, '', $current_user ); wp_redirect( $redirect_url ); die();`
I know this probably means something to someone, would this work? If so, where could/should I put it to get the desired results?