Enable Shortlink in WordPress 3.0


Sponsored Links






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.

Enable WordPress Shortlink - Lizzy Caplan

Enable WordPress Shortlink - Lizzy Caplan

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

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

How To Enable WP.ME Shortlink on WordPress 2.9

Everyday we got something wonderful on WordPress 2.9, the latest one is enable shortlink url on Your WordPress Post Dashboard. This trick really useful for Microblogging user such as Plurk or Twitter. To Enable this featured, all need to do … Read More

Tutorial Enable HTML markup in user profiles

User profiles in WordPress is the perfect ways to display our information, such as website, Yahoo Messenger and many more. You can add some description about yourself on WordPress Profiles too. The problem is, default WordPress Profiles descriptio

How To Integrate Google Font Directory on WordPress Theme

A Google Font Directory is another services by Google, using Google Font directory will be save more bandwidht and server usage. Many question is how to integrate and Using the Google Font Directory in our WordPress theme. Today I will … Read More

Detect Category ID using the Category Slug in WordPress

Sometime WordPress Developer need to know Category ID, I will show you how to find Category ID using the Category Slug in WordPress, this tricks is original by Bavotasan and I rewrite it. WordPress built in with nicely functions get_term_by(), … Read More

How To Enable support for featured images in your WordPress theme

Like we all know Featured Images is new features that currently have on WordPress 3, using this feature we can added featured images more easily. To Enable Enable support for featured images in your WordPress theme you need write down … Read More

How To Enable Keyboard Shortcuts on WordPress Comment

Another WordPress great features is supporting Keyboard Shortcut. Using Keyboard Shortcut, comment moderation much simple, easier and quicker than ever. This WordPress Guide will show you how to enable keyboard shortcuts on WordPress comment

Enable Shortlink in WordPress 3.0 / WordPress Tricks & Tips

Daily The Best WordPress Tricks and WordPress Tips to make your WordPress nice read more

Source: http://wptricks.net/enable-shortlink-in-wordpress-3-0/

How To Enable WP.ME Shortlink on WordPress 2.9 / WordPress Tricks

Enable Shortlink in WordPress 3.0. 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. read more

Source: http://wptricks.net/how-to-enable-wp-me-shortlink-on-wordpress-2-9/

WordPress.com — Get a Free Blog Here

Free blogs managed by the developers of the WordPress software. Includes custom design templates, integrated statistics, automatic spam protection and other features. read more

Source: http://wordpress.com/

WordPress › Shortlinks « WordPress Plugins

But when you enable permalinks, the query string is hidden by the WordPress rewrite rules. visiting WordPress with a shortlink, WordPress Compatible up to: 3.0.5 Last read more

Source: http://wordpress.org/extend/plugins/shortlinks/

Integrating bit.ly with WordPress 3.0 Shortlinks Support | Jerome

This code links the plugin code to the new WP 3.0 shortlink feature. It also makes sure that WordPress 3.0 will continue to operate as before if you do not enable the WP read more

Source: http://blog.jeromeparadis.com/2010/07/02/integrating-bit-ly-with-wordpress-3-0-shortlinks-support/


One Response to Enable Shortlink in WordPress 3.0

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

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>