bp_media_activity_entry()
Get activity entry media to render on front end
Description
Source
File: bp-media/bp-media-filters.php
94 95 96 97 98 99 100 101 102 103 104 105 106 | function bp_media_activity_entry() { global $media_template ; $media_ids = bp_activity_get_meta( bp_get_activity_id(), 'bp_media_ids' , true ); if ( ! empty ( $media_ids ) && bp_has_media( array ( 'include' => $media_ids , 'order_by' => 'menu_order' , 'sort' => 'ASC' ) ) ) { ?> <div class = "bb-activity-media-wrap <?php echo 'bb-media-length-' . $media_template->media_count; echo $media_template->media_count > 5 ? ' bb-media-length-more' : ''; ?>" ><?php while ( bp_media() ) { bp_the_media(); bp_get_template_part( 'media/activity-entry' ); } ?> </div><?php } } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.