Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 15 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@…

Description

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
15 years ago

Point of reference:
http://buddypress.org/forums/topic/converting-theme-how-to-load-buddypress-stuff-on-buddypress-pages-only

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
15 years ago

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

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

#3 @apeatling
15 years ago

!bp_is_blog_page()

Note: See TracTickets for help on using tickets.