Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Adding post featured images to activity stream

@henrywright

Moderator

Hi @nkeatign

Looking at the code snippet in that thread, wp_get_attachment_image_src() is used to get the array of info. The 2nd param is size so you can utilise that to get the large version. For example:

$theimg = wp_get_attachment_image_src( get_post_thumbnail_id( bp_get_activity_secondary_item_id() ), 'large' );

Note: you could also use medium or full if you wanted.

Ref: https://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src

Skip to toolbar