short url in wordpress with tinyurl
paste the function in function.php file and call in you template with:
<?php echo ‘’.getShortUrl(get_permalink($post→ID)).‘“>short url’; ?>
1 function getShortUrl($url) { 2 $tinyurl = file_get_contents("http://tinyurl.com/api-create.php?url=".$url); 3 return $tinyurl; 4 }