Get Short Link from WordPress admin panel

Get Short Link from WordPress admin panel

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
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.

 

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.