Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

BBpress breaks page builder

Open RodalErmakov opened this issue 10 years ago • 2 comments

Hi) I added BBpress plugin. And it breaks page builder's shortcodes in footer nex2 Footer is a page which attached with Multi-Select option. On other pages footer works good. nex1 What should I do?

RodalErmakov avatar Dec 11 '15 04:12 RodalErmakov

I tried this

  1. Install and activate the BBPress plugin
  2. Activate PageBuilder for Forums and Topics post type
  3. Create a new Forum and Topic post and use PageBuilder in post content
  4. On both Forum and Topic the PageBuilder content is not visible. In topic the html is there but the styles are not included in page.

Why do you need to integrate PageBuilder in BBPress?

ghost avatar Oct 13 '16 14:10 ghost

bbPress doesn't do do_shortcode on their content from WordPress editor.

function fw_bbp_shortcodes( $content, $reply_id ) {
    $reply_author = bbp_get_reply_author_id( $reply_id );

    if( user_can( $reply_author, ct_bbp_parse_capability() ) )
        return do_shortcode( $content );

    return $content;
}

add_filter('bbp_get_reply_content', 'fw_bbp_shortcodes', 10, 2);
add_filter('bbp_get_topic_content', 'fw_bbp_shortcodes', 10, 2);

You'll have to also handle dynamic CSS, in this case, which is a bit tricky, by the way.

andreiglingeanu avatar Oct 13 '16 14:10 andreiglingeanu