Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Extra Page’s in BuddyPress

@bpisimone , yes you only need to change the EXAMPLE in BP_EXAMPLE_SLUG and the title “Example”..is the second page a new page you created without a title?

this is what i did to add 3 page titles to 3 pages i created, in the same code:

function page_titles( $title, $b ) {
global $bp;

if ( $bp->current_component == BP_EXAMPLE_SLUG && $bp->current_action == ” ) {
$title = __( ‘Example 1’, ‘buddypress’ );
}
if ( $bp->current_component == BP_EXAMPLE2_SLUG && $bp->current_action == ” ) {
$title = __( ‘Example 2’, ‘buddypress’ );
}
if ( $bp->current_component == BP_EXAMPLE3_SLUG && $bp->current_action == ” ) {
$title = __( ‘Example 3’, ‘buddypress’ );
}
return $title;
}
add_filter( ‘bp_page_title’, ‘page_titles’, 10, 2 );

Skip to toolbar