Block This Page From Logged Out Users?
-
I am trying to block from logged out users http://www.ukraxdemo.com/what15102/lifestories/ which I have added to the Buddypress loop. What I have been trying is not working, and I have been stuck on this for sometime. Tips please 🙂
<?php
if(is_page( $bp->displayed_user->id . ‘/lifestories/’ ) ) {
if ( is_user_logged_in() ) {
echo “We will show lifestories page to loggedin users”;
}
else
{
echo “We will not show lifestories page to loggedout users”;
}}
else
{
echo “We will not have anything here. All other pages will be unaffected”
}?>
- The topic ‘Block This Page From Logged Out Users?’ is closed to new replies.