WordPress tutorial, Get Short Link from WordPress admin panel. Many of them used bit.ly, tinyurl or is.gd sites. we used is.gd methods for shorten link.. Many people use the short link to post blog in twitter. Many of them use the bit.ly and tinyurl or is.gd websites. earlier I used the is.gd methods for shorten link.

Get Short Link from WordPress admin panel

From wordpress 3.0 wordpress introduced the shorten url functionality in wordpress. For enabling the shortlink in wordpress you need to open the functions.php from your theme folder and put the following code in that file.

the_shortlink($text = '', $title = '', $before = '', $after = '');

For more information about the the_shortlink method you should following URL

For showing the short link in your theme you need to use the following code in index.php or single.php or page.php file.

if ( function_exists('the_shortlink') ) the_shortlink( __('Shortlink'), __('Shortlink on this post'), ' ' );

This short url method is very useful for posting the URL in twitter or in any social networking site.


Written by Purab

My name is Purab, Here is my Personal Blog: wpapi.com. I contributor of many wordpress plugins and Drupal Modules. I am core developer of Drupal. Connect to on LinkedIn or Follow @purab on Twitter or Follow me on Google+ or Write Mail to purabdk@gmail.com or Chat with me on Skype : purabdk

Leave a Comment

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