Forum

[insert_php]

if ( is_user_logged_in() ) {

echo ‘[bbp-forum-index]’;
}
else {
echo ‘[bbp-login]’;
}
[/insert_php]