Skip to main content
Technology

WordPress Tip: Sociable + bit.ly

Here’s a quick but useful way to tune your sociable twitter links. Firstly, you should go support sociable and get the premium version which has bit.ly integration. Very cool stuff and totally worth it.

Next, in your WordPress theme functions.php, add the following but with your own twitter handle to ensure that people tweeting the post are referencing your twitter account.

function filter_sociable_known_sites( $sites ) {
	$sites['Twitter']['url'] = 'http://twitter.com/home?status='.
	urlencode('TITLE - SHORT_LINK via @shaneandpeter');
	return $sites;
}
add_filter('sociable_known_sites','filter_sociable_known_sites');