I’ve had problems when using is_page()
in BuddyPress in the past. In addition to that conditional, try putting in further checks such as bp_is_groups()
or bp_is_friends()
(or whatever is relevant to your task).
See here for a list of template tags available:
Template Tag Reference
Thank you for the answer but isn’t it a kind of BuddyPress bug?
If I’m using is_page()
, with page id or slug which is the default WordPress conditional tag, it’s obvious, that I want to display this widget only on this page, no on the all of the group or member single pages.
In the previous version I don’t have this issue. Can this be reported to BuddyPress dev team?
Can this be reported to BuddyPress dev team?
You can report bugs using Trac:
https://buddypress.trac.wordpress.org/
Your login details will be the same as those you use here in the forums.
It’s known issue and will be fixed in WordPress 4.2
More informations may be found in this tread:
https://buddypress.org/support/topic/version-2-2-0-and-is_page/#post-234315
Thanks for the help, problem solved.