Conditional template tag for buddypress pages

bp_current_component() does not necessarily return a boolean – it returns false if not in a BP component, but will return the name of the component otherwise, as a string.

Internally, BP uses the function bp_is_blog_page() to do what you’re asking – if it returns true, it’s not a BP page.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)