This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress. Shortlinks


The default method of WordPress’ implementation of shortlinks adds ?p={post-id} to the end of your site name in place of the full URL. Though this can indeed shorten your link quite significantly; if you have a long site name it still might not be as effective.

This WordPress plug-in allows automatic url shortening of post links with URL Shortener using the API recently provided by Google in place of the default ?p={post-id}.

For Example:
WordPress “shortlink”: (not so short is it?)
Shortlink created with the API : (I can haz more to say about my awesome link on Twiter now – YAY)

Coming Soon


  • In post link statistics with referrers, clicks, and browser stats.
  • Shortcode to place short links inside a post for users to copy.


  • Get shortlink popup
  • Shortlinks Settings page
  • History: 10 Most recent shortend URLs ( only available when authenticate. )


  1. Upload the entire ‘’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to the ‘Settings > Shortlinks’ menu
  4. Add your API key for a higher usage limits ‘Homepage Teasers’


What is is a service that takes long URLs and squeezes them into fewer characters to make a link easier to share, tweet, or email to friends. For example, the short URL is a convenient shorthand representation for the long URL short URLs are randomly generated, and the mappings of short URLs to long URLs are publicly accessible. Additionally, the short URL to long URL mappings are:

Immutable – once created by you, no one else can change them
Irrevocable – once created, they do not expire. Note, however, that Google reserves the right to remove any short URL, for example for spam, security or legal reasons

Why use the Google URL Shortener?

People share a lot of links online. This is particularly true as microblogging services such as Twitter and Google Buzz have grown in popularity. With character limits in tweets, status updates, and other modes of short form publishing, a shorter URL leaves more room to say what’s on your mind.

Google’s global production infrastructure to provide users with the following benefits:

Stability – reliable service with good uptime
Security – warning message if the short URL points to a suspected malware, phishing, or spam website
Speed – fast resolution of short URLs (in a few milliseconds)

Why and where should I get an API Key?

Why you should get a key
Higher usage limits. Without an API key, we don’t know who you are, and we’re pretty shy. You’ll be subject to anonymous usage limits, and those are very, very low. Your requests will fail when you exceed your limits. With an API key, you’ll have very high usage limits — high enough to accommodate most applications’ needs.
Traffic reports. With an API key, you also get access to fun graphs of your API usage on the APIs Console.

How to get a key
Visit the Google APIs Console and:

Create a project. You can create as many or as few projects as you need. (See the Google APIs Console FAQ for details.) We will generate exactly one key per project.
Activate the URL Shortener API. After creating a project, you should see a list of APIs, each with an Activate button. Click on ours.
Nab the key. Click “Keys” on the left-hand side to find out about yours. The “Value” is the string you want.

I don’t see the “get shortlink” button in my post page?

Shortlinks will only be generated on a post save. Don’t want to exceed our limit now do we?

Contributors & Developers

“ Shortlinks” is open source software. The following people have contributed to this plugin.


Translate “ Shortlinks” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Initial release.


  • Authentication. This will allow any shortlinks created in this app to be available on the user’s dashboard at
  • History within dashboard: Displays 10 most recent shortend URLs.


  • Added uninstall option (removes options when plugin is deactivated and deleted).


  • Fixed an issue when having no API Key entered may call generation of a shortlink to fail even when google API wasn’t exhausted.