Skip to:
Content
Pages
Categories
Search
Top
Bottom

Enable Shortcodes in Activity Screen of Buddypress


  • jessy
    Participant

    @jessy-marco

    I used filters and found tutorials how to do it, but no one works for me.

    1, Used filters:
    ‘add_filter( ‘bp_get_activity_content’, ‘do_shortcode’ );’
    ‘add_filter( ‘bp_get_activity_content_body’, ‘do_shortcode’ );’

    2, Added shortcode support to activity entries seems too old – irrelevant.
    Added shortcode support to activity entries.

    4, Shortcodes in bp activities

    3, They do not work just front-end even with default WP themes BUT back-end they work in Activity in wp-admin.

    Thank you for support.

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

  • jessy
    Participant

    @jessy-marco

    Solved:

    <?php
    // Enable Shortcodes for Side-wide Activity Stream
    function oi_add_shortcodes_to_activity_stream() {
    		add_filter( 'bp_get_activity_content_body', 'do_shortcode', 1 );
    }
    add_action('bp_init', 'oi_add_shortcodes_to_activity_stream');
    ?>

    shanebp
    Moderator

    @shanebp

    Nice. And thanks for sharing your solution.


    jessy
    Participant

    @jessy-marco

    You welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enable Shortcodes in Activity Screen of Buddypress’ is closed to new replies.