Info
- 4 posts
- 3 voices
- Started 2 years ago by Burkie
- Latest reply from _ck_
- This topic is not resolved
Topic Templates
-
- Posted 2 years ago #
I am working on a personal project over at http://noded.org and I was just wondering if there was the possibility of having more control over the topic pages. WordPress allows you to create different templates like category-2.php etc for each category, is there any way to achieve this for topics in bbpress. Guess an if topic 5 use these functions would be the best approach if anyone could help.
-
- Posted 2 years ago #
Hmmm...
it may be possible to write a short plugin to overwrite and extand the Template-Function.
Actually the post_template() loads only the "post.php" - in functions.bb-template.php
function bb_post_template() {
bb_load_template( 'post.php' );
}
-
- Posted 2 years ago #
Cheers for info. Ah yes forgot about that, although what I would love to achieve could be done around this.
-
- Posted 2 years ago #
It's easy to control what template loads, just override it at the end of your
header.phpand include any other template with any other name from there - then just make sure to load the footer manually and exit before bbPress does the rest of it's own routine. -
You must log in to post.