← Back to Blog

WordPress Short URL for Twitter

Jan 08, 2010 58 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

58 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


    this is a great idea! thanks :)

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


    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


    Great idea, thanks for sharing this. :-)

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


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

    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.


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


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

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


    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


    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


    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


    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:

  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


    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


    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


    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


    hmm… god sharing and information ;)

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


    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

  27. May 18, 2024 @ 04:00:28

    Pasang Iklan Sewa Gedung

    I’ve read so many articles, this one is nice, Regards, IDProperti.com | Pasang Iklan Properti

  28. May 19, 2024 @ 09:26:58


    آشنایی با کنترل کولر گازی گری r410a و کولر گازی جنرال گلد 30000 و mode های کولر گازی

  29. May 19, 2024 @ 17:56:59

    upholstered furniture

    What’s up everybody, here every person is sharing these familiarity, thus
    it’s fastidious to read this website, and I used to pay a quick visit this website daily.

  30. May 21, 2024 @ 22:31:50


    Really no matter if someone doesn’t understand
    then its up to other viewers that they will assist, so here it occurs.

    Also visit my web page ebook

  31. May 23, 2024 @ 10:11:15


    I must thank you for the efforts you’ve put in penning this website.
    I’m hoping to check out the same high-grade content by
    you later on as well. In truth, your creative
    writing abilities has motivated me to get my very own website
    now ;)

  32. May 23, 2024 @ 17:19:26


    Pretty nice post. I just stumbled upon your blog and wished to say that I have truly enjoyed browsing
    your blog posts. In any case I will be subscribing to your feed and I hope you
    write again very soon!

  33. May 23, 2024 @ 17:54:32

    سئو سایت، سفینه بی بازگشت ارتقای سایت در گوگل

    I am curious to find out what blog system you’re using?

    I’m having some minor security issues with my latest website and I would like to
    find something more secure. Do you have any recommendations?

  34. May 23, 2024 @ 23:55:07

    چگونه نظرات آنلاین را به حداکثر برسانیم - بیزون

    Hello would you mind letting me know which web host you’re
    utilizing? I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a lot faster then most.
    Can you suggest a good web hosting provider at a honest price?

    Thanks, I appreciate it!

  35. May 24, 2024 @ 06:22:22


    Daftar Slotbb Situs Slot Gacor Maxwin Resmi Terpercaya
    beserta Gang Menang Hari ini
    Selamat datang dekat lokasi slotbb gacor maxwin terpercaya dalam Indonesia.
    Slotbb berkomitmen beserta mempunyai imajinasi operasi untuk menjadi
    penyedia mainan pada tempat judi slot terbaik dekat Asia.
    Berbagai situasi dilakukan mendapatkan mencapai sasaran tersebut diantaranya pakai menyediakan banyak
    saringan provider kondang nan terbaik pula lumayan terpercaya.

    Kemudian beta tawarkan lagi tin-tingan game
    judi online lainnya yang bulat standar bersama menarik demi dimainkan. Tidak sahaja judi slot online, tapi saja Anda bisa mengetes menanggungkan klasifikasi seleksian bilangan lainnya selain slot online ganal judi bal, casino Online, poker domino, togel
    online, tembak lauk dan banyak lagi lainnya.

  36. May 24, 2024 @ 10:48:21

    gacw keren

    Have you ever considered about adding a little bit more than just your articles?

    I mean, what you say is fundamental and all.

    However just imagine if you added some great graphics or video clips to give your
    posts more, “pop”! Your content is excellent but with pics and videos, this website could undeniably be one of the
    very best in its niche. Amazing blog!

  37. May 24, 2024 @ 15:09:38

    آخرین اخبار ورزشی امروز ایران

    I am not certain where you’re getting your
    info, however good topic. I must spend a while learning much more or figuring out more.
    Thank you for magnificent information I used to be on the lookout for
    this info for my mission.

  38. May 27, 2024 @ 11:57:07


    Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you!
    By the way, how could we communicate?

  39. May 28, 2024 @ 19:22:32

    Ethnique Marudai

    Hi there, i read your blog from time to time and i own a
    similar one and i was just curious if you get a lot
    of spam remarks? If so how do you prevent it, any plugin or anything
    you can recommend? I get so much lately it’s driving
    me insane so any support is very much appreciated.

  40. May 28, 2024 @ 19:52:54


    Hi there colleagues, pleasant article and fastidious arguments commented here, I am
    truly enjoying by these.

    Feel free to surf to my web-site; ikea singapore (https://www.amazon.com/)

  41. May 28, 2024 @ 22:39:46

    Ethnique Marudai

    I’m impressed, I must say. Rarely do I come across a blog that’s equally educative and entertaining,
    and without a doubt, you have hit the nail on the
    head. The issue is something which not enough folks are speaking intelligently about.

    Now i’m very happy that I found this during my hunt for something relating to this.

  42. May 29, 2024 @ 03:14:29

    Ethnique Marudai

    Touche. Solid arguments. Keep up the great effort.

  43. May 29, 2024 @ 08:47:02

    age of consent

    Good day! I could have sworn I’ve visited this web site before but after looking at many of the articles I realized it’s
    new to me. Nonetheless, I’m definitely delighted I came across it and I’ll be book-marking it and checking
    back regularly!

  44. May 29, 2024 @ 11:17:45

    Catalogue d'objets tribaux

    I will immediately take hold of your rss feed as I can’t in finding your email subscription link
    or newsletter service. Do you’ve any? Please let me recognize in order that I may just
    subscribe. Thanks.

  45. May 29, 2024 @ 12:15:43

    Boutique de trésors tribaux

    Greetings from Idaho! I’m bored to death at work so I decided to
    check out your site on my iphone during lunch break.
    I enjoy the knowledge you present here and can’t wait to take
    a look when I get home. I’m surprised at how quick your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyways, amazing site!

  46. May 29, 2024 @ 14:54:43

    Ethnique Marudai

    I’m really enjoying the theme/design of your weblog.
    Do you ever run into any browser compatibility issues?
    A number of my blog visitors have complained about my website not
    operating correctly in Explorer but looks great in Opera.
    Do you have any suggestions to help fix this problem?

  47. May 29, 2024 @ 18:16:46

    Ethnique Marudai

    I am curious to find out what blog system you have been using?

    I’m having some small security problems with my latest
    site and I would like to find something more safe. Do you have any suggestions?

  48. May 29, 2024 @ 19:36:25

    Ethnique Marudai

    wonderful issues altogether, you just won a emblem new reader.
    What could you recommend in regards to your publish
    that you just made some days ago? Any certain?

  49. May 29, 2024 @ 23:31:13

    Ethnique Marudai

    Very nice post. I just stumbled upon your weblog and wished to say that I have truly enjoyed surfing around your
    blog posts. After all I’ll be subscribing to your rss feed and I hope you write again soon!

  50. May 30, 2024 @ 04:32:54

    Collection d'articles traditionnels

    It’s in point of fact a nice and helpful piece of info.
    I’m happy that you simply shared this useful information with us.

    Please keep us up to date like this. Thanks for sharing.

  51. May 30, 2024 @ 10:25:32

    Ethnique Marudai

    Hmm is anyone else encountering problems with the pictures on this blog loading?

    I’m trying to determine if its a problem on my end or if it’s the blog.
    Any feed-back would be greatly appreciated.

  52. May 30, 2024 @ 23:50:36


    I got this web page from my pal who told me about this web page and at the
    moment this time I am visiting this website and reading very informative articles or reviews at this place.

  53. May 31, 2024 @ 04:10:59

    Ethnique Marudai

    Amazing issues here. I am very satisfied to look your article.
    Thank you a lot and I am taking a look forward to contact you.

    Will you please drop me a e-mail?

  54. Jun 04, 2024 @ 04:47:51


    Great blog! Do you have any tips for aspiring writers? I’m hoping to start
    my own website soon but I’m a little lost on everything.
    Would you recommend starting with a free platform like WordPress or go for a paid option? There are so many options out there that
    I’m totally confused .. Any tips? Appreciate it!

  55. Jun 11, 2024 @ 18:26:35

    Ethnique Marudai

    Sweet blog! I found it while browsing on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to
    get there! Thank you

  56. Jun 12, 2024 @ 01:55:01

    Ethnique Marudai

    Hey there! I’ve been reading your blog for some time now
    and finally got the courage to go ahead and give you a shout out from Atascocita
    Tx! Just wanted to mention keep up the fantastic job!

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;)