Your problem may be the choice of bp_is_user_profile()
. This only returns true when you are literally looking at the xprofile component – the ‘Profile’ tab of a user’s page. bp_is_user()
is more general, returning true whenever you’re viewing a user page (even if it’s user activity, user groups, etc).
[EDIT]
After further discussion with the OP, it looks as if the culprit is is_page()
. Since BP 1.5, BuddyPress uses WP Pages to display content. That means that the is_page()
case was returning true. To exclude BP content from this condition, amend your check as follows:
is_page() && !bp_is_blog_page()
Alternatively, if you want the is_page()
content to show on BP content too, except for user pages,
is_page() && !bp_is_user()
or, to limit it to the profile,
is_page() && !bp_is_profile_component()
Related Posts:
- How to check if the current page is a “personal activity”-page in buddypress? [closed]
- Conditional based on the User Role of the Current Profile the user is viewing – BuddyPress [closed]
- Include Buddypress & bbPress styles/scripts conditionally [closed]
- How to get a buddypress user profile link and a certain user profile field for the current post author?
- Ability to set character limit in BuddyPress?
- BuddyPress: Adding a new tab in groups
- BuddyPress: hook to add new profile fields and groups
- Syncing BuddyPress and WordPress profile fields [closed]
- Buddypress Full documentation [closed]
- What problems can BuddyPress make? [closed]
- Rename Buddypress Profile Tab
- How to re-enable admin bar with Buddypress active? (BP bar removed) [closed]
- Show buddypress notification in the frontend [closed]
- BuddyPress Xprofile check if user can view field [closed]
- Redirect after registration in BuddyPress [closed]
- Remove tabs from buddypress groups and members pages [closed]
- changing the signup button url in WPMU/Buddypress
- Buddypress profile pictures sync across WordPress Multisite Network
- Make Profile link, link to the BuddyPress profile instead of the WordPress dashboard? [closed]
- I’m trying to Add a new Buddypress menu tab and it is not showing up [closed]
- BuddyPress: What is the use of is_default_option field in wp_bp_xprofile_fields table? [closed]
- How do I find the bbpress forum ID for a forum in a buddypress group?
- How to get Viewing profile ID in buddypress? [closed]
- How to make a Discussion Group ”Sticky” in BuddyPress [closed]
- Can’t Find BBPress data in Database
- Buddypress register.php user redirect [closed]
- How to get user id which is done by buddypress [closed]
- BuddyBoss (BuddyPress / bbPress) moderation filters not doing anything
- How to add a count in a custom tab in a Buddypress group
- Show activities of defined BuddyPress groups [closed]
- How to edit buddypress templates? [closed]
- Add an extra field to BuddyPress activity form
- Remove post content from buddypress activity [closed]
- BuddyPress Toolbar
- how to remove mandatory required fields in buddypress registration [closed]
- Customizing the BuddyPress blog loop
- BuddyPress returning incorrect xprofile date [closed]
- Buddypress dynamic profile field
- Is it possible to remove ‘group’ from slug for buddypress groups
- Using WordPress as an API [closed]
- Display message on homepage when new user account is activated
- Empty “Forums” page BuddyPress site wide forums – bbPress [closed]
- Add excerpt and post thumbnail to Buddypress blog directory page [closed]
- How to create a customized logout URL in BuddyPress
- How to set up WordPress in the intranet?
- How can I display the total number of favorites for any particular buddypress activity stream post? [closed]
- How to bring registration field to index page? [closed]
- BP Profile search results won’t link to user’s profile page [closed]
- Integration of Cubepoints/Achievements
- BuddyPress/bbpress: There was an error when creating the topic
- How to get all logged in user id in buddypress [closed]
- bp_has_members with custom fields [closed]
- Display count of new members registered today [closed]
- Pre-populate BuddyPress Member Profile Data in Gravity Forms [closed]
- security issue in wordpress?
- conditional activity page for buddypress [closed]
- BuddyPress user custom url structure , any one knows filter for bp_core_get_userlink [closed]
- Buddypress Welcome Email [closed]
- Buddypress – Add activity scope [closed]
- Buddypress get data from wp_bp_groups_members table [closed]
- How to send a BuddyPress user a notification on a plugin event? [closed]
- How to: get_user_meta – BuddyPress [closed]
- Where do I edit the user profile with Buddypress? [closed]
- Change Buddypress Activity Stream Date format [closed]
- how to find the current page is isngle activity page in buddypress? [closed]
- Buddypress: remove forum tab in user profile page? [closed]
- Noob Question – Buddypress Dynamic content on static page
- How do you remove the buddypress group avatar from the activity stream post? [closed]
- Using wp-postratings to rate user on profile pages [closed]
- How to remove ( 0, 0 ) from forum page in bbpress [closed]
- Buddypress Group creation step reordering [closed]
- How to make the BuddyBar fix and scroll with the page
- Random 404 errors using Buddypress
- Set default landing page for buddypress member profile
- How to filter members by xprofile field via BuddyPress REST API
- Code correction – Hide a profile from visitors with a specific role
- Buddypress profile link on author blogroll page
- permalink for group type
- How to display profile fields with no data in BuddyPress profile view? [closed]
- Send a specific email in HTML and the rest in plain text
- disable plugin in specific dynamic buddypress pages
- Deregister script on specific user’s BuddyPress page
- Serve WordPress in root path of Apache
- How to add username in toolbar link?
- Buddypress registration page hangs [closed]
- How to update avatar in buddypress programmatically? [closed]
- Certain BuddyPress Member Profile Data Getting Hyperlinked [closed]
- Buddypress Adding a Nav item and Calling Custom Fields [closed]
- I used the Buddypress Message Compose to send a site wide email to all members wasnt sent tho [closed]
- Allowing users to add HTML to BP Groups Description how can I error check html of users? [closed]
- buddypress edit profile [closed]
- WordPress/BuddyPress plugin to allow users to create members-only posts [closed]
- BuddyPress Component Slug 404 [closed]
- Weird google bot crawl problem
- Delete user account – If user has attachments uploaded then redirect (with a message) [closed]
- Add Sub Nav Menu Item to Buddy Press Menu [closed]
- Target “admins” with different styles on the front end [closed]
- Is There A List Of What Buddypress Template Files Go Where And What They’re To Be Renamed?
- How to disable buddypress top mini adminbar [closed]
- BuddyPress Activity Stream – Remove/Replace […] from blog post excerpts