feautered image in stream -> blurry img
-
I managed to show the featutered image of a new post in the activity stream, thanks to this topic.
That topic is old + closed now, so I ask my question here…
What I did is place this code in my entry.php:
<div class="activity-inner" > <?php bp_activity_content_body(); $blogpost_id = bp_get_activity_secondary_item_id(); if ($blogpost_id) : if (has_post_thumbnail( $blogpost_id ) ) : $theimg = wp_get_attachment_image_src( get_post_thumbnail_id( $blogpost_id ) ); ?> <a href="<?php echo get_post_permalink($blogpost_id); ?>"> <img style="thumbnail" style="width:100%;" src="<?php echo $theimg[0]; ?>"></a> <?php endif; ?> <?php endif; ?> </div>
Now the image shows up, but looks very blurry. I think it has something to do with ‘img style=thumbnail’, but don’t know how to change it.
Can anyone help? 🙂
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.