try this.
https://github.com/stormuk/storm-twitter-for-wordpress/wiki/Example-code-to-layout-tweets
and to add a element / clss to the tweets i did this:
echo '<p class="tweet">' . $the_tweet . '</p>';
i just now dove into this, but post up any questions here
I am using that example from stormuk, but I cannot figure out how to add a profile image into it and I need profile images on there for my client. I don’t write PHP code although I can manipulate it sometimes. Any sample code that shows how to add the profile image to the example above?
Like this?
echo '<p class="tweet">' . $the_tweet . '</p>';
echo '$profile_image_url';
echo '
<div class="twitter_intents">
<p><a href="https://twitter.com/intent/tweet?in_reply_to='.$tweet['id_str'].'">Reply</a> |
<a href="https://twitter.com/intent/retweet?tweet_id='.$tweet['id_str'].'">Retweet</a> |
<a href="https://twitter.com/intent/favorite?tweet_id='.$tweet['id_str'].'">Favorite</a></p>
</div>';
echo '
<div class="timestamp">
<a href="https://twitter.com/mlkingh/status/'.$tweet['id_str'].'">
'.date('h:i A M d',strtotime($tweet['created_at']. '- 8 hours')).'
</a>
</div>';// -8 GMT for Pacific Standard Time
} else {
echo '
<hr>
<a href="http://twitter.com/mlkingh">Click here to read mlkingh\'S Twitter feed</a>';
}
}
}
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]
I mean like this…I forgot to click the code stamp in the WYSIWYG
`echo ‘<p class=”tweet”>’ . $the_tweet . ‘</p>’;
echo ‘$profile_image_url’;
echo ‘
<div class=”twitter_intents”>
<p>Reply |
Retweet |
Favorite</p>
</div>’;
echo ‘
<div class=”timestamp”>
‘.date(‘h:i A M d’,strtotime($tweet[‘created_at’]. ‘- 8 hours’)).’
</div>’;// -8 GMT for Pacific Standard Time
} else {
echo ‘
<hr>
Click here to read mlkingh\’S Twitter feed‘;
}
}
}