10 Beneficial Twitter Hacks and Plugins for WordPress

Ever since its inception in 2006, Twitter is one social media website that has grown with leaps and bounds. Through the usage of short messages, Twitter helps to market and promote brands to a larger audience. Undoubtedly, the power of Twitter cannot be underestimated and if used properly can help you earn prospects from anywhere you want.

Here are 10 useful Twitter Hacks and Plugins for WordPress to help you make the most out of Twitter for any web blog you have posted in WordPress:
10 Twitter Hacks and Plugins for WordPress

WordPress Hacking Techniques for Twitter – TinyURLs

WordPress range of plugins work exceptionally well however if you intend to use all different types of plugins for your blog you can expect longer page loading time and some inconvenience as well. This is the reason why we suggest going for hacking techniques or hacks.

How to automatically create TinyURLs for your blog posts?

Owing to the limited number of characters you can use on Twitter, you have to use what is called a URL shortener while tweeting URLs. Try to definitely provide short URLs for all posts if you want to drive potential web traffic.

Here is a technique to automate your task:

Open your functions.php file and paste the following code:

function getTinyUrl($url) {

$tinyurl = file_get_contents(“http://tinyurl.com/api-create.php?url=”.$url);

return $tinyurl;



Once done, paste this in your single.php file, within the loop:


$turl = getTinyUrl(get_permalink($post->ID));

echo ‘Tiny Url for this post: <a href=”‘.$turl.'”>’.$turl.'</a>’


Display Latest Tweets without the Help of a Plugin

If in case people enjoy visiting your blog, chances are that they may also want to tweet. Make it a point to display latest tweets on your WordPress to gain new subscribers. This is where a plugin can help you but preferably professionals enjoy using a hack. The hack would help you grab the latest tweet and display it on your very own blog.

You can make use of the code given below. Simply paste it in your theme files however don’t forget to change the value of the $username.

The $prefix and $suffix variable can be used to insert a title, and the div element can be used for further CSS styling.



// Your twitter username.

$username = “TwitterUsername”;


// Prefix – some text you want displayed before your latest tweet.

// (HTML is OK, but be sure to escape quotes with backslashes: for example href=\”link.html\”)

$prefix = “<h2>My last Tweet</h2>”;


// Suffix – some text you want display after your latest tweet. (Same rules as the prefix.)

$suffix = “”;


$feed = “http://search.twitter.com/search.atom?q=from:” . $username . “&rpp=1”;


function parse_feed($feed) {

$stepOne = explode(“<content type=\”html\”>”, $feed);

$stepTwo = explode(“</content>”, $stepOne[1]);

$tweet = $stepTwo[0];

$tweet = str_replace(“&lt;”, “<“, $tweet);

$tweet = str_replace(“&gt;”, “>”, $tweet);

return $tweet;



$twitterFeed = file_get_contents($feed);

echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix);


Display Your Most Recent Tweets as an Image

Everyone is aware of Twitter’s success and this is why considerable number of third party agencies have started to promote additional Twitter services. One of the most popular ones is TwitSig. This site although may not look compelling but is useful since it allows you to obtain an auto-updating image that can portray your latest Twitter post.

Get to Know When a Visitor Comes from Twitter

Wouldn’t it be useful if you came to know if a visitor is visiting your WordPress blog from your Twitter post! Just because Twitter uses re-tweet so it might be useful to gain information of Twitter visitors. Of course do welcome them and remind them that the re-tweets they offer is highly appreciated.

Develop a Twitter Page as an Integral Part of Your WordPress Blog

In addition to displaying your latest tweet on your blog by targeting the sidebar yet another way to target readers so that they can go through your latest updates is by creating a dedicated page that can display your tweets. This can be done by using a powerful tool called “Page template” as a WordPress option. In order to go ahead with this hack you need to be well versed with techniques of how to create and use page templates.

Bring in Use Twitter Avatars without using Specific Plugins

You can appropriately use Twitter codes to be able to introduce avatars to your comment field. All that you need to be familiar with is the source code.

WordPress Plugins for Twitter

Twitter Updater

Are you aware of the fact that you can notify readers of your new blog postings and/or even old ones through a tool called Twitter updater? This plugin helps you automatically send an update status request to twitter as and when you create or even modify a particular post.

Twit this

This specific plugin makes it simpler for the reader to tweet about your blog posts. This is done by creating a “Share on Twitter” link on your blog. When someone clicks on it, your blog post URL is then sent to Twitter.


This plugin is very useful for bloggers since it permits you to tweet friends directly right from your WordPress dashboard. This becomes really handy if in case you spend considerable time on your WordPress account.


This plugin helps you integrate Twitter avatars in the comment field of any WordPress blog. This is a definite plugin to use if you focus on enhancing readership.

Sachin Aggarwal is SEO Head in IT Chimes and expert in Twitter and WordPress plugin usage. He offers guidance in Twitter hacks and other techniques of bridging Twitter with other social media sites like WordPress.