Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: At my wit\'s end with custom theming …


madyogi
Participant

@madyogi

I am essentially not using the blog function of BP at all, only the extended profiles, the wire, the activity, etc. That said, all pages are in essence the home blog of my WPMU install. So what I’m needing is to figure out if I’m (or one of my users) is looking at a BP component or not, then display the right stuff.

Would it make sense to query the $bp global here? as in:

...
} elseif ( $bp->current_component == profile ) {
//include whatever corresponding content here
}
...

I’m not as up on my php as I should be. Is this a viable option?

Skip to toolbar