First of all in your wordpress theme directory you should have a functions.php file which contains common functions to be used inside your themes. In case you don't have one, create a file called functions.php inside your favorite wordpress theme directory.

TinyURL
Open the functions.php file and add followig function which will allow you to create TinyURL.com urls on demand.

save and close the functions.php file.
Now we have function which will create TinyURL for our post/page.
Next step is find sociable.php which is located in wp-contentpluginssociable directory.
Open sociable.php and find the following block:

just below
![]()
add next line:
![]()
now you should have something like this:

Next, in sociable.php find

and add at the end next line
![]()
So now you should have this:

Next find

and change it to

Save sociable.php.
Voila! Now we have Sociable WordPress Plugin wich generates short url via TinyURL for TwitThis Button.
Bit.ly
One of the more popular URL shortening services is Bit.ly.
Note that Bit.ly requires you to sign up for an account. Once you have an account, you may attain your login and URL information.
Open the functions.php file and add followig function which will allow you to create dynamic Bit.ly urls on demand.

save and close the functions.php file.
Now we have function wich will create dynamic Bit.ly urls for our post/page.
Next step is find sociable.php which is located in wp-contentpluginssociable directory.
Open sociable.php and find the following block:

just below
![]()
add next line:
![]()
now you should have something like this:

Next, in sociable.php find

and add at the end next line
![]()
So now you should have this:

Next find

and change it to

Save sociable.php.
So now we have Sociable WordPress Plugin wich generates short url via Bit.ly for TwitThis Button.
With little tips, tricks and code hacks we have beautiful Sociable WordPress plugin that supports short urls!
I hope you enjoyed it, and if you did please leave a comment below!

