#Shortcode snippet # <?php if (function_exists('get_shortlink')) { // WP 3+ ?> <div class="short-url">Short <abbr title="Uniform Resource Locator">URL</abbr>: <input onClick="this.focus(); this.select();" value="<?php echo get_shortlink(get_the_ID()); ?>" size="30" type="text" /></div> <?php } ?>