wordpress - Is it possible to deep link to Buddypress pages via login? -


i have wordpress installation on i'm using buddypress plugin. using plugin send daily digest e-mails users offer them links forums have had new posts.

the problem if user follows 1 of these links when they're not logged in, they're taken 404 'page not found' page.

is there way redirect them login page redirects them desired location after logging in?

thanks!

just take control of 404.php page theme's file. implement in theme's 404.php page redirect specific users page:

if( http-referer == 'you-know-how-to-detect-buddypress-users' ) $redirect_to= 'http://example.com/';     //redirect_to main part here. details on parameter, see here: http:  wp_redirect($redirect_to);  exit();   /* rest of file 404.php, remain unchanged */ 

ref: http://codex.wordpress.org/function_reference/wp_redirect


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -