@tommybaz
8 years, 4 months ago
Just in case it matters i have used this code in my bp-custom.php to add the featured image to activity stream:
<?php function record_cpt_activity_content_featured_image( $cpt ) { if ( 'new_business' === $cpt['type'] ) { global $wpdb, $post, $bp; $theimg = wp_get_attachment_image_src( get_post_thumbnail_id( bp_get_activity_secondary_item_id() ), 'large' ); $cpt['content'] .= '<img src="' . $theimg[0] . '">'; } return $cpt; } add_filter('bp_before_activity_add_parse_args', 'record_cpt_activity_content_featured_image');