Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Support: Creating & Extending

Existing and new plugins/components and themes.

How to use a wordpress shortcode for posts and pages in a forum topic? (8 posts)

Started 2 years, 2 months ago by: Wolly

  • Profile picture of Wolly Wolly said 2 years, 2 months ago:

    I have a shortcode to put in a post or a page in wordpress, I’d like to use it in a forum topic in buddypress as I can let it work?
    I use wordpress(not µ) 2.9.2 and buddypress 1.2.2.1 and i use the bbpress included in buddypress.
    thanx in advance.

  • Profile picture of rich! @ etiviti rich! @ etiviti said 2 years, 2 months ago:

    you can download the group forum extras – but you don’t have a need for all of that. this code snippet will enable wp shortcodes on post content

    add_filter( 'bp_get_the_topic_post_content', 'do_shortcode' );
  • Profile picture of Wolly Wolly said 2 years, 2 months ago:

    thanx a lot now I try.
    ciao
    w.

  • Profile picture of hiaz hiaz said 2 years ago:

    Where exactly do I need to put this code snippet, please?

  • Profile picture of seagrinch seagrinch said 2 years ago:

    Thanks for the tip. I just used it to add PollDaddy polls in the forums area.

    @hiaz You can add it to the functions.php file in your theme.

  • Profile picture of jstebbing jstebbing said 1 year, 8 months ago:

    Is it possible to add a filter to allow shortcodes in group descriptions? I would like to use the plugin “donation can” but I can’t get the shortcode the plugin generates to work properly. Ideas?

  • Profile picture of Ezeke Ezeke said 1 year ago:

    @jstebbing better late than never ;)
    add_filter( 'bp_get_group_description', 'do_shortcode' );

  • better late than never

    How can I make wordpress shortcodes work anywhere in buddypress?