How to use short url with sharethis

Using sharethis but disappointed that it doesn’t have shortlink support?

If you are someone who is comfortable placing some code in the correct place inside your theme then following will work for you.

In comes url-shortener plugin to the rescue.

First install and activate sharethis and url shortener plugins. Select your favourite url shortening service in the url shortener plugin.

Then place the code in your theme at the appropriate place e.g.

 <span class=’st_facebook’ st_url='<?php echo wp_get_shortlink();?>’></span>

If you have wordpress <3.0, you should be upgrading, but for some reason you can’t, there is a slight difference in the code

<span class=’st_facebook’ st_url='<?php fts_show_shorturl($post); ?>’></span>

Leave a Reply

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