Re: How to make a private community?
Ok, I’m still dorking around with this… the goal is to have my site a register only site. When people go to musicpln.org they will be redirected to the landing page (http://musicpln.org/landing1) which is a BP page with a login widget. I also would like the feeds to not be blocked.
This code goes in the function.php file:
if( bp_is_register_page() || bp_is_activation_page() ||is_feed() || is_page(‘landing1’) )
// Where landing1 is the page slug of where I would like to redirect
if( ! is_user_logged_in() )
bp_core_redirect( $bp->root_domain .’/’. BP_REGISTER_SLUG );
// my activity page is the “homepage” and I don’t want to show any BLOG(s)
add_action( ‘get_header’, ‘sh_walled_garden’ );
I would like this to redirect to the landing1 reference above (which includes the login widget) The url is http://musicpln.org/landing1
I saw that you put this code in a previous reply…
Where can I put this to make it redirect to the LoginPage above? How can I tie this altogether now?