WordPress Consultant and Genesis Developer

Genesis bbPress Extend

I recently had a project which required integrating bbPress (which, obviously I am a fan of) into a site built on top of the Genesis Framework.

From my experience, 90% of the integration went smoothly. There are a few things that may crop up and screw with your iteration depending on how you have your Genesis settings configured.

I have thrown together a quick (translation: rough) plugin that should keep these oddities for occurring.

Download plugin

UPDATE: JohnJamesJacoby has taken this and turned it into an elegant patch. Needs testing, but looks very promising.

As I mentioned, this plugin isn’t quite done, which is why I haven’t submitted it to the .org repo yet. However, I noticed in the bbPress forums others were having this same issue, so hopefully this can help fix the issues until a packed plugin is released.

The root of the problem boils down to Genesis archive pages. By default these archive pages use the_content – when this is the case usually things work fine. Problems start creeping up when users change the archive settings in Genesis. If you have your archives set to automatically display a post thumbnail or to crop the content output to XXX characters, things break.

bbPress does all its magic by filtering the_content to add in all of the forum goodness. When Genesis changes what is output (say by adding post images or limited the content length) things explode because that is not what bbPress is expecting. I have bought this up in Genesis Trac and it doesn’t appear a fix will be applied to core, which judging by the length of this plugin I don’t blame them, so a plugin will be needed to fix the issues.

Hope this helps. If you have any questions just leave a comment!

Peanut Gallery

  1. Hi Jared! Thank you very much for this solution, it just works perfectly for me! I’ve also tested to change your if statement a bit and found out that the combination of this works: if ( bbp_is_custom_post_type() || is_bbpress() ) { — the “bbp_is_custom_post_type” hast to be in there otherwise the forum tags do not work properly. I’ve also added post type support for “forum” and “topic” at the top of your plugin code – so it has a bit more comfort. So I can add a body class for a special forum and have a nice styling for example.

    The patch from John isn’t working yet I assume some issue with the layout setting function or other functions… This is exceeding my coding experience at the moment so maybe both of you have some ideas how to implement this in bbpress core :-)

    However, thanx so much for this quick response! Very much appreciated!
    -Servus, Dave from Germany :)

Leave your 2 cents

*