Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

Create Automatic Short URLs for Your WordPress Posts with WP

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
Create Automatic Short URLs for Your WordPress Posts with WP

In our last few articles we have been focusing a lot on dealing with Short URLs and WordPress. While creating our new WordPress Gallery (Submit your WordPress Site), we had to deal with few issues that we did not cover on WPBeginner. Some of those issues were “How to Display Shortlinks in WordPress Theme“, or “How to Automatically Add Custom Fields on Every Post Publish“. Well in this article, we will actually show you how to automatically generate a or PRO URL (Remember the Branded Short URLs?) for each of your posts without editing a single line of code.

After going through numerous solutions, our developers came to the conclusion to use the plugin WP rather than reinventing the wheel. WP plugin allows you to generate short links using the API for all of your blogs posts and pages. In addition to that, this plugin generates a new meta box on your posts that show you statistics about your link (such as who’s clicking on your links). The best part about this plugin is that it hooks into the WordPress Shortlink filter, so it can be used by you, your visitors and a variety of other services that employ them.

First you need to download WP Plugin and Install it. (See our Step By Step Guide to Install a WordPress Plugin)

Then the plugin will need to be configured with your account. If you don’t have one, then you would need to signup to have a personalized API. To retrieve your API, go under the Settings Tab in your account (Hint: it is located in the top right where your username is).

Now let’s configure the plugin. Go to Settings » WP in your WordPress Admin Panel.

WP Bitly Plugin Settings

Enter your Username, and the API Key. Then select your Post Types that you want to generate the link for. Click save changes and you are done.

To check if it is working, simply open your account, and you will see tons of new links generated. Or you can simply go to any of your post and click on the Short Link button, and you should see a box with your link or Pro link like in the image below:

WordPress Branded Shortlink

This plugin is extremely easy to use, it does the job very well, and it has amazing future development plans: “Future development will include the ability to use your own domain as the short link (”

Download WP Plugin NOW

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Abdul Haseeb says:

    I want to share my wordpress posts on facebook and Google+ with adfly shorten links. Can you help, how can I do it?

  2. wptemaer says:

    The plugin is not working i can’t enter my login information in settings for

    • Editorial Staff says:

      Not sure why it wouldn’t work. It’s working on our site.

    • Sumoni Hfg says:

      yeah, i also facing the same issue :(
      can some point out whats the prblm?
      @sayed any chances of solving the prblm?

      • Editorial Staff says:

        Not sure why this is not working. It works on our site. Please contact the plugin developer using the WordPress support forums.

  3. WpInformerUA says:

    Have some troubles! It create a new link in my admin bar, which is always the same, but in my dashboard it create correct links for all posts. And if i use the_shortlink() function in single.php it create a correct link too. How can I fix problem in admin bar? and how can i get only URL of short link, therefor the_shortlink() create full link.

  4. wpbeginner says:

    If you read the beginning of this article, it links to other tutorial that will show you how to add these shortlinks in themes..

  5. WaleedRaza says:

    Cool thing! CAn ypu perhaps explain how to use that shortlink (in my case a pro custom url short link) in the side sharebar much like you have here on your site too?


  6. Chris Radford says:

    Isn’t this just a duplication of the WordPress built in short urls? Which themselves can be made to look nicer with a few quick pokes of the htaccess file:

    Or am I totally missing something here?

    • Editorial Staff says:

      Well yes and no. Your domain is too big << or ours ... by utilizing this trick, we can use << and then have a shorter branded URL.

  7. Ronen Bekerman says:

    Cool thing! CAn ypu perhaps explain how to use that shortlink (in my case a pro custom url short link) in the side sharebar much like you have here on your site too?


    • Editorial Staff says:

      You can use it in your tweets. Or look at the articles that we linked to in the beginning of the post. That explains how you can use them in your theme.

  8. terry says:

    Thanks for the info. Will definitely try this as its good for my twitter post. Tx

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.