dropplets icon indicating copy to clipboard operation
dropplets copied to clipboard

Template, twitter image and post image

Open iosonodenis opened this issue 13 years ago • 4 comments

When working on a template, is it possible to display both the twitter profile image and the post image with two separate calls from php?

So far, it looks like that uploading an image will substitute the twitter profile picture

iosonodenis avatar Sep 03 '13 09:09 iosonodenis

In post.php the template will reference $post_image, which will show the post image, and will revert to the twitter image if there is no post image. You should also be able to reference get_twitter_profile_img($blog_twitter); which will show the twitter image.

(For that matter, the same should apply in posts.php, which is for lists of posts)

misterben avatar Sep 03 '13 10:09 misterben

Fantastic, so I could also use get_twitter_profile_img($post_author_twitter) to get the twitter image of the author

iosonodenis avatar Sep 03 '13 10:09 iosonodenis

I believe so, yes.

misterben avatar Sep 03 '13 11:09 misterben

Yep, it does! Not sure how all the caching will work, as well as for the original fix for the 1.1 twitter Api, but it works

iosonodenis avatar Sep 07 '13 11:09 iosonodenis