Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: loading wordpress with bbpress

@mdawaffe

Member

What you’re trying to do should be done in bbPress’ config.php file, but you’re really close :)

Put your index.php back the way it was. In bbPress’ config.php file, put the following two lines right after the <?php line.

require_once('/path/to/wp-blog-header.php');

define('WP_BB', true);

It seems you’ve found the correct path to use in you system: /home/myusername/public_html/blog/wp-blog-header.php

So it should now look like:

<?php

require_once('/home/myusername/public_html/blog/wp-blog-header.php');

define('WP_BB', true);

Then, copy your bb-templates/ directory to my-templates/ this is so you can modify the template files without editing the original ones; bbPress will use the files in that directory automatically instead of the original ones.

In my-templates/front-page.php (and any of your other template iles), you can now call any WordPress template function, even get_header().

Skip to toolbar