Using bbpress functions from the wordpress theme
WP2.5 -> 2.7
BBPress 0.9.4 -> 1.0 alpha 6
WP is running badly.
In order to get access to functions of BBPress, I have these lines at the end of wp-config.php:
if ( !defined('BBDB_NAME') )
Into the index.php of my WP theme, I wish to display the last topics of the forums, by doing:
$forums = get_forums();
$topics = get_latest_topics();
$super_stickies = get_sticky_topics();
$topic = $topics[$i];
<?php } ?>
The display of the latest messages was working well and still working well after the upgrade, BUT WORDPRESS GETS INTO TROUBLE:
– the css style for the back admin of WP is not working
– the hooks into the plugins are not called anymore (add_action(‘wp_head’, ‘init_js’); where init_js() is never run)
– custom query vars are not detected into the url
Well, when I remove the require_once into the wp-config.php (see below), the trouble disappear.
//if ( !defined('BBDB_NAME') )
How to get it working with the bbpress function without trouble in WP ?
I think this is a very important point for the BBPress integration in WordPress
- You must be logged in to reply to this topic.