Deep integration of bbPress with WordPress
February 11th, 2010 | Tagged as: bbPress ¤ WordPress | Download as PDFIf you are new here. You may want to sign up for e-mail updates or subscribe to my RSS feeds. Thanks for visiting!

I have written tutorials to simple integrate bbPress with WordPress but Deep integration tends to take it to the next step.
To know more about deep integration, read my upcoming post (to be published tomorrow).
Before we can deep integrate bbPress with WordPress, we need to simple integrate it. You can follow the bbPress WordPress integration tutorial and then complete the following step.
Add the following line of code in the beginning of bb-config.php file
/* Deep integration */
if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {
define('WP_USE_THEMES', false);
include_once(dirname(__FILE__) . '/../wp-blog-header.php' );
header("HTTP/1.1 200 OK");
header("Status: 200 All rosy");
}
In line 4, specify the path to the wordpress file. Like here in sample code, it is for bbPress being in a sub-folder of WordPress. Make sure it matches your setup.
This will load the WordPress along with bbPress and now WordPress based function calls and code can be used inside bbPress. This tutorial just enables you to use WordPress within bbPress from the development point of view. For more information on how you can use deep integration further stay tuned so that you don’t miss any of them.






Howdy! My name is Ashish K Saini aka Ashfame.

bro, u need to fix “amp&” into “&” character in the code
Thanks for the heads up! Fixed!
Hi
I’ve added the code but get a ‘Web Page has Redirect Loop’ and no load
Hi,
Thanks a lot. I was trying to deep integrate BBpress with WordPress in vain for a long time. Now your fix has fixed my problem.
Rajesh
good to hear that