Problems displaying shortcode contents in non-standard BP 1.7 themes
We’re having problems displaying the contents of shortcodes inside the tabs of our BuddyPress Custom Profile Menu plugin. This only happens in non-standard BP 1.7 themes, but works as expected in themes like “BuddyPress Default” that ships with BP.
Researching the issue some more, we found the following line in bp-core-theme-compatibility.php (line 525)
bp_remove_all_filters( 'the_content' );
This is clearly the cause of the issue, as it removes, amongst others, the ‘do_shortcode’ filter function from ‘the_content’ filter (function added to filter in WordPress’ shortcodes.php, line 335). Why does BuddyPress remove all ‘the_content’ filters when in theme compatibility mode? Does this mean that shotcodes cannot be displayed in this mode?
Thanks in advance!
- The topic ‘Problems displaying shortcode contents in non-standard BP 1.7 themes’ is closed to new replies.