printing #main div just if logged in?
is it possible to just display the #main div on my bbpress website if users looged in? i don’t want to simply hide it with css, because i’m able to do that.
however i thought of something like starting in the header with:
<?php if ( bb_is_user_logged_in() ) : ?>
and ending in the footer
</div> <!– #main –>
<?php endif; ?>
however, i’m always getting an error. any idea how i can solve that problem?
i just want to display the login form and the register-link if users are logged out, nothing else, not even stuff in the footer – no header image, nothing at all.
thank you for your help!
You must be logged in to reply to this topic.