Skip to:

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2131 closed enhancement (worksforme)

If BuddyPress Page

Reported by: thekmen's profile thekmen Owned by:
Milestone: 1.2.3 Priority: minor
Severity: Version:
Component: Keywords:
Cc: dave@…


Trying to convert WordPress themes to BuddyPress enabled themes, there is no easy way to check if you are viewing a current BuddyPress generated page or standard WordPress pages/posts.

$bp->current_component returns the WP page/archive slug when viewing standard WP pages/posts.

If we had is_bp_generated_page or something like that, we could include the required BuddyPress ajax, js & css only on required pages.

Change History (3)

#1 @r-a-y
14 years ago

Point of reference:

thekmen is experiencing a page-slug when returning $bp->current_component on a WP page.
This should return nothing, correct?

Need someone to confirm.

#2 @apeatling
14 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

if ( !bp_is_blog_page ) { do this on buddypress pages }

#3 @apeatling
14 years ago


Note: See TracTickets for help on using tickets.