Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Specifying the surrounding page template in 1.7 to allow different templates for BP content

@hnla

Participant

hmm ok this isn’t perhaps a fair example, but illustrates the ease with which I can do what I need in bbPress:

We have a template part ‘content-archive-forum’ do nothing and this template part injects into page.php. I can overload the template part dragging it into the theme modify and still have it inject into page,php – however now I have a different requirement page,php is no longer suitable but I can create a new template in theme root archive-forum.php and use that to call the appropriate template_part ‘content-archive-forum’ /forums/ now finds that template rather than page.php.

As I say though not perhaps best example.

Skip to toolbar