Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding post featured images to activity stream

Viewing 1 replies (of 1 total)
  • @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

Viewing 1 replies (of 1 total)
  • The topic ‘Adding post featured images to activity stream’ is closed to new replies.
Skip to toolbar