Re: Specifying the surrounding page template in 1.7 to allow different templates for BP content
In BP 1.7, BuddyPress looks for the following files in your theme’s folder to determine which page BP uses for the skeleton:
`’plugin-buddypress.php’
‘buddypress.php’
‘community.php’
‘generic.php’
‘page.php’
‘single.php’
‘index.php’`
If you need to do a conditional based on a specific BP page component, there’s a filter in `bp_get_query_template()` to override it. Note: I haven’t tested this yet.
You could also use BP page conditionals with template parts within one of the templates listed above. That’s probably the easiest way without having to use filters.
References:
bp_get_theme_compat_templates():
`https://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-template-loader.php#L292`
bp_get_query_template():
`https://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-template-loader.php#L140`