Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP 2.3 update & Activity Stream Formating


  • nkeatign
    Participant

    @nkeatign

    Since I’ve upgraded BP from 2.2 to 2.3, the functions i’ve used to format my activity stream no longer work (they don’t do anything, no errors or no effects whatsoever).

    Function was taken from here(https://buddypress.org/support/topic/add-post-featured-image-in-activity-stream/)…

    I’ve looked through the 2.3 release notes, but cant find anything that indicated that an action like below might no longer work?

    function icondeposit_bp_activity_entry_meta() {
     
        if ( bp_get_activity_object_name() == 'blogs' && bp_get_activity_type() == 'new_blog_post' ) {?>
            <?php
            global $wpdb, $post, $bp;
            $theimg = wp_get_attachment_image_src(  get_post_thumbnail_id( bp_get_activity_secondary_item_id() ) );
            ?>
            <img src="<?php echo $theimg[0]; ?>" >
     
        <?php }
     
    }
    add_action('bp_activity_excerpt_append_text', 'icondeposit_bp_activity_entry_meta');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘BP 2.3 update & Activity Stream Formating’ is closed to new replies.
Skip to toolbar