We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Displaying Tweet images using EE_Twitter

How Do I?

IC360 (Oliver Cannell)'s avatar
IC360 (Oliver Cannell)
241 posts
8 years ago
IC360 (Oliver Cannell)'s avatar IC360 (Oliver Cannell)

Has anyone had any luck displaying a Tweet’s images, using the EE_Twitter plugin (I’m on EE 2.10.1 by the way)?

{exp:twitter:user screen_name="xxxxxxx" limit="2"}
 {image}
 {created_at format="%g:%i %A, %j%S %M %Y"}
 {text}
{/exp:twitter:user}

The Date and Tweet Text are output just fine, but the Image is the user’s profile image rather than the Tweet images. I’ve tried using the variable pair {images} but that doesn’t seem to work either.

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
8 years ago
Ingmar Greil's avatar Ingmar Greil

Are you nesting that tag somehow? It looks like a clear variable conflict to me.

       
IC360 (Oliver Cannell)'s avatar
IC360 (Oliver Cannell)
241 posts
8 years ago
IC360 (Oliver Cannell)'s avatar IC360 (Oliver Cannell)

I don’t think so. It’s outside of a {exp:channel:entries} pair but it is inside an {if} statement which is checking the segment_2 value, but I can’t believe that would affect it.

       
IC360 (Oliver Cannell)'s avatar
IC360 (Oliver Cannell)
241 posts
8 years ago
IC360 (Oliver Cannell)'s avatar IC360 (Oliver Cannell)

I have now switched to using the CE_Twitter module and I’ve managed to get it working nicely, using the following code:

{exp:twitter:user screen_name="xxxxxx" limit="2"}
 <div class="tweet">
  {images}{image}{/images}
  {created_at format="%g:%i %A, %j%S %M %Y"}
  {text}
 </div>
{/exp:twitter:user}
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.