possible addition short links to the bellow of the post on front end to see it everyone without registration?
https://www.ads-software.com/extend/plugins/short-link-maker/
]]>place this code inside your theme functions.php, of (for this plugin developer) inside plugin code, for adding a shortlink to the admin bar.
for those who would like to have this button also without dependence in “short link maker” plugin, if the plugin isn’t working or is absent, it will show the numeric default worpress link.
function wp_shortlink_adminbar() {
global $wp_admin_bar, $wpdb, $post;
if ( !is_user_logged_in() || !is_admin_bar_showing() )
return;
if ( function_exists('get_shortlink') ) {
$shortlink = get_shortlink($post->post_ID);
} else $shortlink = get_site_url().'/?p='.$post->ID;
/* Add the main siteadmin menu item */
$wp_admin_bar->add_menu( array( 'id' => 'shortlink', 'title' => __( 'Shortlink', 'textdomain' ), 'href' => FALSE ) );
$wp_admin_bar->add_menu( array( 'parent' => 'shortlink', 'title' => $shortlink, 'href' => FALSE ) );
}
add_action( 'admin_bar_menu', 'wp_shortlink_adminbar', 1000 );
https://www.ads-software.com/extend/plugins/short-link-maker/
]]>Hi cannot install the plugin: invalid header :/
WP 2.9.2
https://www.ads-software.com/extend/plugins/short-link-maker/
]]>Can you tell me if there is a possibility to add a custom domain instead of the main site’s domain? There is not much use using the same long domain for shorturl
Thanks
https://www.ads-software.com/extend/plugins/short-link-maker/
]]>