Re: the_post_thumbnail & the activity stream
Giving this one a bump – as I want the feature!
The challenge: display the featured image (post_thumbnail) from the latest site blog posts
The solution that comes to mind is: an activity stream loop to extract the blog post activity; get the blog id and post id; switch to the blog; query based on the post id to get the post_thumbnail
However, the switch to blog route strikes me as quite inefficient.
Does anyone have a better solution to this? Oh, and of course, a perfect working infinitely flexible code snippet to share
Thanks, Roger
p.s. the function bp_activity_thumbnail_content_images is being passed the blog post content, so doesn’t have access to the feature image (post_thumbnail)