If you run your own blog using WordPress software you probably already use pretty permalinks. When posting links somewhere it’s easier and better to use a short code. Did you know that you can use the default permalink as a URL shortener in WordPress even if you are using pretty permalinks? Here’s how: Every post has a unique post id. You can find out the post id simply by looking at the link to edit the post (for authors, moderators, and admins). Then you format the short code like this: http://site.com/?p=x where x is the post id number.
Example:
This blog is at
http://metalfire.com/url-shortening-wordpress/
and since the edit link ends in post=92 I know that the postid is 92 and therefore the shortcode would be:
Click on either and it will bring you to
http://metalfire.com/url-shortening-wordpress/
You want to use the short URL on sites like Twitter where you have a 140 character limit on posts.
Yes, it’s that simple!!!!
