WordPress 3.0 built in with many many new featured, Integrated WordPress MU, New WordPress 3.0 Nav Menu, New Default Theme and many more. Shorlink feature is another nicely feature in WordPress 3.0. Default WordPress 3.0 shortink on you header front end will be come like this
, but if you are using WordPress Stats, you’ll have WP.ME integration shortlink.
How to integrate Shortlink on our themes? You can use with 4 parameters
* @param string $text Optional The link text or HTML to be displayed. Defaults to 'This is the short link.' * @param string $title Optional The tooltip for the link. Must be sanitized. Defaults to the sanitized post title. * @param string $before Optional HTML to display before the link. * @param string $before Optional HTML to display after the link. */ the_shortlink($text = '', $title = '', $before = '', $after = '')
And here the code on your theme
if ( function_exists('the_shortlink') ) the_shortlink( __('Shortlink'), __('Shortlink on this post'), ' · ' );
You can play around with wp_get_shortlink too, to integrate on yoy WordPress 3.0 theme, add it on your functions.php
add_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
To remove this functions, use this code
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
It’s only example, you can made it more better on Enable Shortlink in WordPress 3.0, thanks for WP Enginer and bueltge
Photo courtesy of Egotastic




Pingback: Tweets that mention How To Enable Shortlink in WordPress 3.0 # WordPress Tricks & Tips -- Topsy.com