Sunday, January 3, 2010

How to disable shortlink

WordPress 2.9 provides shortlink for each post for free. However, if you don't like it, you can disable it easily.

To disable it, copy and paste the following code into your theme's functions.php file.
/* Disable Auto Adding of Shortlink */
remove_action('wp_head', 'shortlink_wp_head');