This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Bitly URL Shortener


Bitly URL Shortener (Previously Codehaveli Bitly URL Shortener) uses the functionality of Bitly API to generate bitly short link automatically from your WordPress dashboard when you publish new post.

Bitly URL Shortener allows you to connect your WordPress Website to the Bitly API via access code.


  • Generate Bitly link without leaving your site.
  • Share Bitly link from your Post List and Post Edit page.
  • Support for Custom Post Type.
  • Support for Custom Bitly Domain.
  • Generate Bitly link of your old posts with just one click.
  • Option to choose from your list of post types.
  • Optimized code and Small in Size 16KB ( Compressed ).

Terms of Use

This is not a Official plugin of Bitly

This plugin only connect your account to WordPress.

Please read privacy and terms of service of Bitly before using this plugin.

Bug reports

Bug reports for Bitly URL Shortener are welcomed in our Bitly URL Shortener repository on GitHub. Please note that GitHub is not a support forum, and that issues that are not properly qualified as bugs will be closed.

Further Reading

For more info on Bitly and Codehaveli , check out the following:

Frequently Asked Questions

Read FAQ from our Github Page.


  • Settings Panel Screenshot
  • You can go to settings from Plugn list settings
  • Generated URL column in post list
  • Share button in post list
  • Custom Post type selection checkbox.
  • Copy Shortner link from Front end.


  1. Visit the plugins page within your dashboard and select Add New
  2. Search for Bitly URL Shortener
  3. Activate Bitly URL Shortener from your Plugins page.
  4. Go to settings from Tools Menu or Settings fromm WordPress Plugin list
  5. Get Your access token from and save it in access token field
  6. Click on Get GUID if you don’t have the Group GUID. [Plugin will get it from your bitly account via API call]
  7. You are ready to go, From now when ever you publish a post your link will be generate automatically


How to get the short link of a post?

$link = get_wbitly_short_url($post_id); // link or false


July 4, 2022
Easy to use URL shortener that works with Bitly! Highly recommended.
January 27, 2021
I was looking for a simple plugin to shortify quickly the links of my articles. This plugin does exactly what I needed and in a very simple way! Thanks to the autor.
December 20, 2020 1 reply
I installed this plugin in every blog, without this plugin I don’t know how can I save my time. Thanks, developer.
September 27, 2020
The Plugin is extremely useful for us as a media company, and works as expected and needed. Initially, the functionality for custom post types wasn’t there so I reached out to the developer to see if they had any plans to introduce this in the future. To my surprise, I received an email from the developer today saying they were looking into it – and a short while later, there was an update available with the functionality added! Great service! 100% recommend for your shortlink needs!
July 31, 2020
We use this plugin in combination with WP to Twitter and it works great. And good support if you have a problem.
Read all 5 reviews

Contributors & Developers

“Bitly URL Shortener” is open source software. The following people have contributed to this plugin.


Translate “Bitly URL Shortener” into your language.

Interested in development?

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

Change log



  • PHP Warning: Fixed


  • Name chnaged from Codehaveli Bitly URL Shortener to Bitly URL Shortener due to SEO conflict with


  • Support WordPress Core Shortlinks Filters.
  • Shortener link from Front end.
  • Code optimized.


  • Meta Box added in Post Edit Page, now you can share link from your post page
  • Some security issue fixed.


  • Custom Post Type Selection Added and default set to ‘post’.
  • Small bug fixed


  • Custom Post Type Support Added


  • Versioning fixed.
  • Code optimized.


  • Option added to share link from post list
  • Genereate old posts link from post list
  • Function refactored
  • Error handler added
  • Some bug fixed


Initaial Release