In my Wordpress Blog I'm currently using an integrated http://U.nu url-shortener.
For this I've got in functions.php
function getunuUrl($url) {
$unuurl = file_get_contents("http://u.nu/unu-api-simple?url=".$url);
return $unuurl;
}
and in my post.php
<?php $uurl = getunuUrl(get_permalink($post->ID));
echo '<a href="'.$uurl.'">Short Url</a>' ?>
I can't find a way to integrate j.mp the same way. Anyone able to help me out?