Unyson
Unyson copied to clipboard
BBpress breaks page builder
Hi)
I added BBpress plugin. And it breaks page builder's shortcodes in footer
Footer is a page which attached with Multi-Select option.
On other pages footer works good.
What should I do?
I tried this
- Install and activate the BBPress plugin
- Activate PageBuilder for Forums and Topics post type
- Create a new Forum and Topic post and use PageBuilder in post content
- 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?
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.