I have the following code that'll show the latest tweet from a user on my page.
<div id="last-tweet" class="grid_12">
<p><b>@user: </b> <?php
$username='username'; // set user name
$format='json'; // set format
$tweet=json_decode(file_get_contents("http://api.twitter.com/1/statuses/user_timeline/{$username}.{$format}")); // get tweets and decode them into a variable
echo $tweet[0]->text; // show latest tweet
?></p>
</div>
Does anyone know how I can add a 'hashtag' constraint to this so it would only show tweets from this user with a particular hashtag?
Thanks dvent