As an alternative, is there a way to redirect to a WordPress page (rather than what I was trying to do , which is redirect to my custom 404 page)?
take a look in wp-config.php
well that’s not really helping me unless I know what I am looking for. it doesn’t seem to make sense for me to look at the wp-config file when what I am trying to change is how the plugin functions. i want to know if i can change this bit of code within private-buddypress.php:
`wp_redirect(get_option(‘siteurl’) . ‘/wp-login.php?redirect_to=’ . $redirect_to);`
to redirect to a page other than the login page. i have tried putting other pages there but i get an infinite looping problem. clearly i am doing it wrong but not sure what needs changing.
Added in 1.0.3, add this to your functions.php:
`function redirect_nonloggedin_users($current_uri, $redirect_to) {
// Redirect users to the homepage
// Caution! Exclude the homepage from ‘Private BuddyPress’ options
// to avoid redirection loops!
return get_option(‘siteurl’) . ‘/?from=’ . $redirect_to;
}
add_filter(‘pbp_redirect_login_page’, ‘redirect_nonloggedin_users’, 10, 2);`