Skip to:
Content
Pages
Categories
Search
Top
Bottom

Block This Page From Logged Out Users?


  • tduschei
    Participant

    @tduschei

    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”
    }

    ?>

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Block This Page From Logged Out Users?’ is closed to new replies.
Skip to toolbar