Blog default short URLS

WordPress Tutorial – Adding this code snippet to your wordpress theme will display the built in short your for your blog post. You could use something like this for your tweets rather then bit.ly or other URL shorteners.

 

 

<?php
echo get_bloginfo('url')."/?p=".$post->ID;
?>

Be Sociable, Share!

Leave a comment