• <?php if ( is_user_logged_in() ) : ?>
    [whatever menu items you wish to hide from public]
    <?php endif; ?>

    What i want to do is to hide or block activity, member and groups from non members.

    I have used wordpress access plugin but it only hides pages you have created yourself rather than buddypress activity, member and groups.

    So how do I put activity, member and groups in the above bracket. Do I use full stops or commas to separate them.

    <?php if ( is_user_logged_in() ) : ?>
    [activity, members, groups]
    <?php endif; ?>

    Please help. I will put this in the header above nav in buddypress.

    Please help

Viewing 1 replies (of 1 total)
  • I would like the solution to this problem as well. If a visitor to my site has not registered, I do not want them to be able to view the list of members, the groups, the forums, or the activities of the site. I have installed Private! WordPress Access Control Manager, and Absolute Privacy plugins, and neither of them accomplish this type of restriction. I am using BuddyPress 1.5.2, bbpress 2.0.2 and WP3.3.

Viewing 1 replies (of 1 total)
  • The topic ‘php coding for exclude activity, menu and groups’ is closed to new replies.