Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wp_echoTwitter($username, $numb=1){
- include_once(ABSPATH.WPINC.'/rss.php');
- $tweet = fetch_rss("http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=" . $numb );
- for($i=0; $i<$numb; $i++){
- echo "<p style='line-height: 15px; margin-bottom: 10px; margin-top: 4px;'>" . html_entity_decode( $tweet->items[$i]['atom_content'] ) . "</p>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement