Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • Avatar of Wolly
    Wolly
    Participant

    @wolly

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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' );

    Avatar of Wolly
    Wolly
    Participant

    @wolly

    thanx a lot now I try.

    ciao

    w.

    Avatar of hiaz
    hiaz
    Participant

    @hiaz

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

    Avatar of seagrinch
    seagrinch
    Participant

    @seagrinch

    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.

    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?

    @jstebbing better late than never ;)
    `add_filter( ‘bp_get_group_description’, ‘do_shortcode’ );`

    Avatar of jf0
    jf0
    Member

    @jf0

    better late than never

    How can I make wordpress shortcodes work anywhere in buddypress?

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.