The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Widgets on Pages
Widgets On Pages not working in buddypress posts (2 posts)

  1. travellers
    Posted 3 years ago #

    The [widgets_on_pages] shortcode works brilliantly in various pages where I've used it, but when I enter the shortcode in a buddypress post on the same website the resulting page just shows the shortcode itself rather than the result of it. I've fiddled around for hours trying to get it to work and you wouldn't have thought it would be beyond the wit of man to be able to manage that, but I'm afraid I've failed :(

    I'm guessing(!) that this is fairly straightforward to implement - would you be able to let me know where to modify the bbpress files to allow the shortcode to run? Many, many thanks in advance!


  2. travellers
    Posted 3 years ago #

    Just to follow up my own question, it might be more complicated than I'd thought. I'm fairly confident that the snippet I need to add is
    add_filter( 'bp_get_the_topic_post_content', 'do_shortcode' );
    and that should go in the theme's functions.php file but here's where it gets tricky.
    Buddypress doesn't have a 'theme' as such, certainly there isn't a theme for it to select in Appearance > Themes, and all its theme-type files reside in the plugin directory instead. The initial question is whether to place the snippet in the 'buddypress' plugin, or in the 'bbpress' plugin - I can't seem to get my head round which one of those is responsible for the theme layout.
    I can't believe I'm so close but so far!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Widgets on Pages
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic