Searching for a better Twitter widget

I’m using the “FriendFeed Activity” widget to show the latest 7 enties of my friend feed. However, FriendFeed just aggregates my Twitter, Blog (via RSS) and YouTube activities. That are things Twitter couldn’t handle at the beginning, but now can. So I’m thinking of removing my FriendFeed and switch completely to Twitter (and a Twitter … Read more

Displaying additional User Contact Information

I have been advised how to add additional contact info fields to the User admin area here (Click here). However, I am not entirely sure how I can display the the field contents in a link within my template files. Here is the code in my functions.php: add_filter( ‘user_contactmethods’, ‘more_contactmethods’ ); function more_contactmethods( $contactmethods ) … Read more

Tons of Twitter rows in my database

I have 264,307 “http” (post_type = http) rows in my wp_posts table. 99% of those have them have this post_title: GET http://twitter.com/statuses/user_timeline/@xcentric.json?count=100 and “error” as the post_status. Can I simply delete these without it affecting my site? My wp_posts table is 5gb! Thanks 2 Answers 2 Here is a bait-and-switch approach to deleting all those … Read more

Top 3 posts in last week ordered by Facebook and Twitter share counts

I am interested in displaying the top 3 stories in the past week based on the total number of shares on Facebook and Twitter. I have found that these share counts are more useful indications of what is popular in comparison to sorting by the number of comments using ‘orderby’ => ‘comment_count’. So my question … Read more

{” was not expected.} Deserializing Twitter XML

I’m pulling in the XML from Twitter via OAuth. I’m doing a request to http://twitter.com/account/verify_credentials.xml, which returns the following XML: <?xml version=”1.0″ encoding=”UTF-8″?> <user> <id>16434938</id> <name>Lloyd Sparkes</name> <screen_name>lloydsparkes</screen_name> <location>Hockley, Essex, UK</location> <description>Student</description> <profile_image_url>http://a3.twimg.com/profile_images/351849613/twitterProfilePhoto_normal.jpg</profile_image_url> <url>http://www.lloydsparkes.co.uk</url> <protected>false</protected> <followers_count>115</followers_count> <profile_background_color>9fdaf4</profile_background_color> <profile_text_color>000000</profile_text_color> <profile_link_color>220f7b</profile_link_color> <profile_sidebar_fill_color>FFF7CC</profile_sidebar_fill_color> <profile_sidebar_border_color>F2E195</profile_sidebar_border_color> <friends_count>87</friends_count> <created_at>Wed Sep 24 14:26:09 +0000 2008</created_at> <favourites_count>0</favourites_count> <utc_offset>0</utc_offset> <time_zone>London</time_zone> <profile_background_image_url>http://s.twimg.com/a/1255366924/images/themes/theme12/bg.gif</profile_background_image_url> <profile_background_tile>false</profile_background_tile> <statuses_count>1965</statuses_count> <notifications>false</notifications> … Read more

Simplest PHP example for retrieving user_timeline with Twitter API version 1.1

Because of the Twitter API 1.0 retirement as of June 11th 2013, the script below does not work anymore. // Create curl resource $ch = curl_init(); // Set url curl_setopt($ch, CURLOPT_URL, “http://twitter.com/statuses/user_timeline/myscreenname.json?count=10”); // Return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // $output contains the output string $output = curl_exec($ch); // Close curl resource … Read more

Create New WordPress User after Twitter Signin, using Twitter credentials?

I’ve seen wp-snippets.com uses Twitter sign-in which somehow creates a WordPress users with the Twitter credentials. wp-snippets.com > signin with twitter > Oauth > CallbackURL = wp-admin with twitter credentials written to WP user How is this achieved? I’ve searched a lot plugins and cannot see anything that writes twitter user details to the WordPress … Read more