Getting Shortlink in WordPress admin panel

Sponsors

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.

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
http://codex.wordpress.org/Function_Reference/the_shortlink

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.

Incoming search terms:

You may like following Articles!

13 thoughts on “Getting Shortlink in WordPress admin panel

  1. Hello, A very great blog, I have to admit this is really what we are here for, this place undoubtedly needs writers like you. Filling the forum with numerous excellent guidelines and information, I did follow Several your posts, they been specific and good points were elaborated. I must say we should often be ready to post within our best knowledge to aid people. Really appreciate this article.

  2. I am in truth not too informed with this topic but I do like to see blogs for design ideas and entertaining issues. You actually thrived upon a issue that I normally don’t like much about and made it really fascinating. This is a nice website that I will take note of. I already bookmarked it for potential credit. Cheers

  3. Hey very cool website!! Man .. Beautiful .. Amazing .. I’ll bookmark your blog and take the feeds also…I’m happy to find a lot of useful information here in the post, we need work out more techniques in this regard, thanks for sharing. . . . . .

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>