Thanks for moving this here.
Check the /bbp-includes/bbp-general-template.php file; there are a ton of _is_ functions.
Thanks for moving this here.
Check the /bbp-includes/bbp-general-template.php file; there are a ton of _is_ functions.
!bbp_is_forum() did the trick. Thanks!
!bbp_is_forum() did the trick. Thanks!
I use the Widget Logic plugin too to manage forum specific and blog specific widgets.
I find this list useful: http://phpdoc.ftwr.co.uk/bbpress-plugin/bbPress/TemplateTags/_bbp-includes—bbp-general-template.php.html
I use the Widget Logic plugin too to manage forum specific and blog specific widgets.
I find this list useful: http://phpdoc.ftwr.co.uk/bbpress-plugin/bbPress/TemplateTags/_bbp-includes—bbp-general-template.php.html
!bbp_is_forum() doesn’t work for me, maybe there is another function that is being used right now. Does anyone know which one? I want the widget to disappear on every thing from bbpress except for the user profile.
!bbp_is_forum() doesn’t work for me, maybe there is another function that is being used right now. Does anyone know which one? I want the widget to disappear on every thing from bbpress except for the user profile.
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?
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?
I confirm !bbp_is_forum() doesn’t work !
But !(is_post_type_archive( ‘forum’ ) || is_singular( array( ‘forum’, ‘topic’, ‘reply’ ) )) work !
I confirm !bbp_is_forum() doesn’t work !
But !(is_post_type_archive( ‘forum’ ) || is_singular( array( ‘forum’, ‘topic’, ‘reply’ ) )) work !