← Back to Blog

WordPress Short URL for Twitter

Jan 08, 2010 28 Comments

You may have noticed that Twitter no longer automatically shorten URLs in the tweets. The great thing is now you can promote your own domain in the tweets. If you are using WordPress, you can take advantage of the default permalink structure to shorten URLs. Instead of posting the "pretty" URL, you can shorten it by removing the "www." and using the post ID in the URL (e.g. "?p=1204").

short url example

Advantages of Using Your Own Domain URLs:

  • Promote your site (branding): when people retweet, your domain will fly around.
  • More meaningful: readers at least know the link goes to your site. Shorten URL (e.g. bit.ly/buSzh) is meaningless because readers don’t know where the link is directing to.
  • Build trust & increase click rate: people tend to click on the links that they trust rather than unknown URLs (ie. bit.ly/buSzh might be a spam link).

How to Find Post ID?

  • Go to Admin > Edit Posts, hover over the post link, look at the status bar, the number at the end of the URL is the post ID.
  • When you are editing or previewing a post, the number in the URL (on the adddress bar) is the post ID.

Collapse All Expand All

28 Comments… +add yours?

  1. Jan 08, 2010 @ 12:29:23

    Smashing Share

    Its great feature. Thanks for sharing this. Would use this next instead to URL shorten services. I agree that many people use URL shorten services to spam around.

  2. Jan 08, 2010 @ 12:31:05

    Ignaty Nikulin

    Nice idea! Thank you! Too bad I quit use WP :)

  3. Jan 08, 2010 @ 12:33:18

    Malcolm Bastien

    Great idea. I supposed if you do it this way it’s still possible to track the traffic stats coming from twitter since it’s not in fact a “short url” type of redirect that’s going on and it’s in fact a real link.

    Thanks Nick!

  4. Jan 08, 2010 @ 12:52:57

    rado

    this is a great idea! thanks :)

  5. Jan 08, 2010 @ 13:08:54

    Matt

    Great idea. Although I have to ask…don’t most people use clients for twitter these days which have there own shortners?

  6. Jan 08, 2010 @ 13:14:10

    Thorvald

    Great idea, thanks for sharing this. :-)

  7. Jan 08, 2010 @ 14:08:32

    Frankie

    Hey Nick,
    is it possible to create a short URL like

    http://bit.ly/Renommee
    For example: ndesign-stuido.com/short-url

    It’s much better for your google analytics account.

  8. Jan 08, 2010 @ 14:53:53

    Arpit Jacob

    I been using it for quite some time, I even wrote a WordPress theme function to automatically post from WordPress to twitter every time you write a new post on you blog.

    http://www.clazh.com/post-wordpress-to-twitter-automatically-with-short-urls-no-plugin-required/

  9. Jan 08, 2010 @ 17:44:09

    Dani

    Nice Nick, I hadn’t thought of this. Thanks!

  10. Jan 08, 2010 @ 18:05:40

    ocube

    Does this work for all versions of wordpress?

  11. Jan 08, 2010 @ 22:58:09

    Design Informer

    The only thing with this is you are unable to track how many clicks you get, etc. But maybe there is a way that I don’t know about?

    • Jan 10, 2010 @ 16:38:53

      Hidayat Sagita

      I think if we use GA there won’t be a problem.

  12. Jan 08, 2010 @ 23:48:47

    viettel adsl

    But why we not using the full url structure? I think it’s better short url???

  13. Jan 09, 2010 @ 15:27:35

    kok aan huis

    Hey, thanks for sharing :-)

  14. Jan 10, 2010 @ 06:05:56

    Jason Ferguson

    Thanks for the tip. Stuff like this is gets taken for granted sometimes until someone actually takes the time to point it out. Personally I hate shortened URL’s, purely from a readability and security standpoint. I like to have “some” idea of where I’m clicking through to.

  15. Jan 11, 2010 @ 09:08:39

    David

    Sounds Good.
    I Use the “Reveal IDs for WP Admin” Plugin for WordPress. That show the ID of each post in the Articleoverview. Must Have! :)

  16. Jan 11, 2010 @ 17:49:12

    designi1

    But when your´re searching on google or other the http:… /blog/wordpress-short-url-for-twitter URL can be useful for the reader to know faster what content it ill be found on the page. i use myself also short URL´s, its an option..i saw benefits from both sides _D

  17. Jan 12, 2010 @ 03:55:35

    Dave

    I’m surprised nobody has mentioned this yet:
    If you do this, you will take an SEO hit… Google will not like your web site as much as it used to. The long URL’s are desirable because google indexes the words in them and it helps your site and your content be found easier.
    I prefer to use a plugin like “Redirection” that lets you preserve your link structures AND use short URL’s.
    For example, you create a post called: http://www.ndesign-studio.com/blog/wordpress-short-url-for-twitter and set up a Redirect so that ndesign.studio.com/short redirects to the long URL. It’s the best of both worlds (plus the plugin lets you track clicks to your short URL.

    • Jan 22, 2010 @ 21:36:05

      Tim Nicholson

      Dave, you are correct that the search engines frown upon having many URL’s that point to the same content. That’s because bad websites do this as a trick to try to increase their organic page rank. However, WordPress 2.9 automatically adds what is called a “canonical URL” to every page. That means regardless of what URL the search engine followed to arrive at the content, it knows what the “canonical” or “preferred” link is. So if you are on WP 2.9, this shouldn’t be an issue.

      Go to any page on a WP 2.9 site and you’ll see something like this:

      At least my site does it and its documented in the WP Codex for v2.9 here:
      http://codex.wordpress.org/Version_2.9

  18. Jan 12, 2010 @ 04:54:28

    Nathan Staines

    If you add the WordPress.com stats plugin to your site you’ll notice there’s a ‘Get Shortlink’ button added to the backend where you compose your posts…

    It appears right underneath the title input field.

  19. Jan 14, 2010 @ 22:05:08

    Bill

    I use this WordPress plugin called Pretty Link (Free version) or Pretty Link Pro (Paid version) that allows me to create a link to any website (including internal redirects) and I can set the URL. For example, this URL http://designinsidechicago.com/32t will link to the pretty link pro site. The pro version also has other awesome features that allow you to use a pretty bar which I used in the previous link, and I can automatically have it tweet new posts. And there is awesome reporting to track your hits. Basically it is tr.im or bit.ly for your own WordPress site.

    In short, I LOVE this plug-in and have been using it in my tweets for over a year now. It is definitely worth checking out.

  20. Feb 17, 2010 @ 05:57:28

    Weddings Fashion

    you are correct that the search engines frown upon having many URL’s that point to the same content. That’s because bad websites do this as a trick to try to increase their organic page rank. However, WordPress 2.9 automatically adds what is called a “canonical URL” to every page. That means regardless of what URL the search engine followed to arrive at the content, it knows what the “canonical” or “preferred” link is. So if you are on WP 2.9, this shouldn’t be an issue.

  21. Apr 19, 2010 @ 19:45:34

    SEO

    Very nice alternative, particularly useful for sites that have short urls to begin with. Too bad if you had a site with the url thisismyverylongwebaddress.com- no url shortner would matter.

  22. May 15, 2010 @ 15:16:25

    Alex

    http://Paidly.com allows you to create a short URL that can be effectively used instead of a long URL.

  23. Jun 07, 2010 @ 16:54:41

    Ganhar Dinheiro

    Excellent tip, very useful to me, thanks a lot!

    Dani Edson

  24. Jul 11, 2010 @ 13:16:55

    Kabataş

    hmm… god sharing and information ;)

  25. Jul 23, 2010 @ 19:05:01

    ollie

    great idea… thank you…

  26. Feb 20, 2012 @ 15:34:20

    Ganhar Dinheiro

    This technique did not know for sure will help me a lot

Write Your Comments

Reply in this thread

  • No rude or spam comments
  • Allowed HTML tags:
    blockquote, a, em, strong, strike
  • Use HTML entities to output code as text
    (ie. < = &lt; > = &gt;)

FALL LOVE: 20% FALLSALE coupon code & 40% affiliate commission boost at Themify (details)