bbPress does not have a built in “get_sidebar” function like WP but you can use a regular PHP include.
include ‘sidebar.php’;
I’ve opted to include my sidebar within my footer template but I can imagine that might not always be doable with a more complex layout.
@Taeo Ya I realize that bbPress doesn’t have the same sidebar ‘functionality’ as WordPress. What I’mm looking for is more of hte code re-use idea .. write one (or two) sidebars.php and then just include them so thanks on the PHP confirm – I am pretty much a PHP n00b …..
Steven, here is the exact way to do it if you still need help:
<?php include("/www/yoursite/forum/my-templates/your-template/sidebar.php");?>
Then the file you are including just goes in sidebar.php in your template folder. Write the sidebar once, use it anywhere.
Or, if you want to follow coding standards, <?php bb_load_template( 'sidebar.php' ); ?>
.
@bEn L .. thank you very much .. we really need a codex with bbPress template tags