Re: custom post type – activity stream thumbnail
If I include $postid in the $activity_content, it appears in the activity item and is correct.
`
$activity_content = ‘post_id: ‘ . $postid . ‘ + ‘ . bp_create_excerpt( $post->post_content, 25 );
`
So why isn’t get_the_post_thumbnail returning the image ?
Maybe the thumb doesn’t exist at that point ?
I’m trying to do this in a plugin file.
‘thumbnail’ is part of my supports array for register_post_type.
And I use get_the_post_thumbnail in the edit screen (template file) for this cpt and it works fine.