Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


  • 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' );


    wolly
    Participant

    @wolly

    thanx a lot now I try.

    ciao

    w.


    hiaz
    Participant

    @hiaz

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


    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’ );`

    better late than never

    How can I make wordpress shortcodes work anywhere in buddypress?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to use a wordpress shortcode for posts and pages in a forum topic?’ is closed to new replies.
Skip to toolbar