These are 3 conditional tags to check if you are on a bbPress forum page. These conditional statements also first check to see if the bbPress plugin for WordPress is active.
Check if on the main bbPress forum archives page:
if ( class_exists('bbPress') ) { if ( bbp_is_forum_archive() ) { echo 'You are on the Support Forums Archives. These are all the forums.'; } }
Check if on a bbPress single forum page:
if ( class_exists('bbPress') ) { if ( bbp_is_single_forum() ) { echo 'This is a single forum. Here you see all the topics for one forum.'; } }
Check if on any bbPress page:
if ( class_exists('bbPress') ) { if ( is_bbpress() ) { echo 'This page somehow corresponds to bbPress plugin.'; } }
Laura G
October 28th, 2013 at 5:59 pm
Thank you! None of the other answers in the WordPress forums worked, but this does like a charm.