WordPress provides you a ‘Get Shortlink‘ button on post edit screens which generates a shorted URL of the page. A WordPress short URL contains your domain name suffixed with some numeric value. Where as Jetpack plugin enabled websites generates shortlinks with wp.me/something address. In this tutorial we will show you how to use Google URL Shortner service for creating short URLs with WordPress ‘Get Shortlink’ button.
How To Make WordPress ‘Get Shortlink’ Button Use Goo.gl Service?
Google has launched a URL Shortener API (Goo.gl) which is one of the fastest and most reliable URL shortners on world wide web. WordPress site owners can easily use this API key simply by installing and activating Goo.gl Plugin.
After activation the plugin allows you generate Goo.gl short URLs for your posts which then could be retrieved using the default WordPress “Get Shortlink” button (visible in your post edit screens) or from the wp_get_shortlink()
function.