WordPress Tip: Sociable + bit.ly

Published on: January 9, 2010 |Tags: ,,,, | Categories: Technology

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');

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>