Re: bbPress 2.0 – conditional tags?
I had to use the following code in order to get it to work:
!(is_post_type_archive( ‘forum’ ) || is_singular( array( ‘forum’, ‘topic’, ‘reply’ ) ))
I needed to use is_post_type_archive() in order to get the widget to disappear from the forum index because none of the following tags worked:
!is_page() (tried with slug, id and title)
!is_single() (tried with slug, id and title)
!bbp_is_forum()
!is_page_template( ‘page-front-forums.php’ )
as well as a bunch of other stuff I forgot. Does anyone know if there is a simpler tag that I can use?