Guest User

Untitled

a guest
Jul 27th, 2010
2,993
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function wp_echoTwitter($username, $numb=1){
  2.      include_once(ABSPATH.WPINC.'/rss.php');
  3.  
  4.      $tweet = fetch_rss("http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=" . $numb );
  5.  
  6.      for($i=0; $i<$numb; $i++){
  7.         echo "<p style='line-height: 15px; margin-bottom: 10px; margin-top: 4px;'>" .  html_entity_decode( $tweet->items[$i]['atom_content'] )  . "</p>";
  8.      }
  9. }
RAW Paste Data