Tiny Link – a WordPress plugin to create a TinyURL for your articles

Tiny Link is a Wordpress plugin that creates an alternate TinyURL link to your article or post permalink. This will be useful while sending hyperlinks in emails, typing on mobile devices, et al.

I was in search of a way to automagically get an alternate short link for the lengthy URL of my articles. I tried a plugin but somehow went kaput and never worked for me. I decided to write one for myself and came up with a very simple solution. – Tiny Link.

Well, Tiny Link is a WordPress plugin that creates an alternate TinyURL link to your article or post permalink.

I hope this will be useful while sending hyperlinks in emails to avoid the word-wrap for lengthy article URLs. This should also be useful (as far as I can guess) to mobile device users so they will can type a shorter url to read an article.

TINY LINK

USAGE

The most straight forward usage would be to add this simple script

<?php TinyLink() ?>

to one of your template – “single.php”.

However, a slightly advanced usage will be, to first check if the plugin is installed, if yes, then execute this module. We can even give a direct link to it, so users can copy the link by right-clicking (Mac: Ctrl + Click) the hyperlink.

<?php if (function_exists('TinyLink')) { ?>
Tiny alternate link for this article: 
<a href="<?php TinyLink() ?>" title="TinyURL link to - <?php the_title(); ?>"><?php TinyLink() ?></a>
<?php } ?>

Feel free to give me your feedbacks, errors encountered, bugs founds, et al. If you wish to take it further, you’re most welcome to join the project.


Don't like it? There are lots of published articles, pick a random one.

Brajeshwar posted this article on Sat, Aug 18th, 2007 at 3:14 am
Categorized under Technology and has the following tags

Prev Article:

Next Article:

Archives: Visit the Archives for more articles.

  • http://weblogtoolscollection.com/archives/2007/08/17/wordpress-plugin-releases-for-818/ Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 8/18

    [...] Tiny Link creates an alternate TinyURL link to your article or post permalink. [...]

  • http://www.henkou.mykyoudo.com/wordpress-plugin-releases-for-818/ Nico Nemil | Filipino Web Developer | Pinoy Web Designer | Intermediate Graphics Artist » WordPress Plugin Releases for 8/18

    [...] Tiny Link creates an alternate TinyURL link to your article or post permalink. [...]

  • http://www.akshaysurve.com Akshay Surve

    One of the cutest plugin out there ;)

  • http://www.akshaysurve.com Akshay Surve

    One of the cutest plugin out there ;)

  • http://wp.tekapo.com/2007/08/19/tiny-link/ Tiny Link | わーどぷれすっ!

    [...] Tiny Link – a WordPress plugin to create a TinyURL for your articles – Brajeshwar [...]

  • http://www.tothepc.com/archives/wp-plugin-create-tinyurl-link-for-posts/ Techno Life @ tothepc.com » Blog Archive » WP Plugin: Create TinyURL link for posts

    [...] there is a WordPress plugin by Brajeshwar for your WordPress install to automatically generate TinyURL for every article. [...]

  • http://www.izitso.net/ Malathy

    This is a fantastic blog. I wish I had known it much earlier.
    I blogged about you. Pl read it here.

  • http://www.izitso.net/ Malathy

    This is a fantastic blog. I wish I had known it much earlier.
    I blogged about you. Pl read it here.

  • http://www.mutinydesign.co.uk Mutiny Design

    Is this an ‘SEO-friendly’ plugin?
    i.e. is this a 301 redirect?

  • http://www.mutinydesign.co.uk Mutiny Design

    Is this an ‘SEO-friendly’ plugin?
    i.e. is this a 301 redirect?

  • http://www.brajeshwar.com/ Brajeshwar

    @Mutiny Design:
    No, and there is no reason to make it such. Tiny Link should be used as an alternative link to be used while sending links to somebody or to type on a mobile device or when you just need a shorter link. The main link should be used for the usual purposes – linkbacks, hyperlinking within your article.

  • http://www.brajeshwar.com/ Brajeshwar

    @Mutiny Design:
    No, and there is no reason to make it such. Tiny Link should be used as an alternative link to be used while sending links to somebody or to type on a mobile device or when you just need a shorter link. The main link should be used for the usual purposes – linkbacks, hyperlinking within your article.

  • http://www.designers-city.com Sally, design guru

    Frankly speaking, i don’t think that it is so useful. Just one more plugin to satisfy customers needs and wants.

  • http://www.designers-city.com Sally, design guru

    Frankly speaking, i don’t think that it is so useful. Just one more plugin to satisfy customers needs and wants.

  • http://www.brajeshwar.com/ Brajeshwar

    Very true. I needed something to get my job done and so, I came up with this plugin. I released it to the public, just in case somebody needs something similar.

  • http://www.brajeshwar.com/ Brajeshwar

    Very true. I needed something to get my job done and so, I came up with this plugin. I released it to the public, just in case somebody needs something similar.

  • http://www.korben.info/amusons-nous-avec-tinyurl.html Amusons nous avec TinyURL | Korben’s Blog

    [...] dernière pour la fin ? Si vous utilisez WordPress, vous pouvez installer ce plugin qui vous permettra de générer automatiquement un lien TinyURL de votre dernier post afin de vous [...]

  • http://www.askowlbert.com/about-the-topic/easy-way-to-let-people-twitter-your-blog-posts-tinyurl-plugin-usable-for-tweets/ Easy way to let people Twitter your blog posts – TinyURL plugin usable for tweets!

    [...] Step 1 – Read up about the TinyLink plugin. [...]

  • http://www.cabwar3z.uni.cc K1DF0X

    Are there any plans to update this to support WordPress 2.5?

  • http://www.cabwar3z.uni.cc K1DF0X

    Are there any plans to update this to support WordPress 2.5?

  • http://www.brajeshwar.com/ Brajeshwar

    @K1DF0X
    I don’t remember anything complicated or un-usual that it should not work with WordPress 2.5. Have you tried it? My feeling is that it should work.

  • http://www.brajeshwar.com/ Brajeshwar

    @K1DF0X
    I don’t remember anything complicated or un-usual that it should not work with WordPress 2.5. Have you tried it? My feeling is that it should work.

  • http://www.cabwar3z.uni.cc K1DF0X

    Hmm, the problem I have is once I have inserted the code into my template, the default text “TinyURL alternative…” appears but the actual TinyURL link isn’t there.

  • http://www.cabwar3z.uni.cc K1DF0X

    Hmm, the problem I have is once I have inserted the code into my template, the default text “TinyURL alternative…” appears but the actual TinyURL link isn’t there.

  • http://www.brajeshwar.com/ Brajeshwar

    @K1DF0X
    It works for me on both WordPress 2.5 and 2.5.1. If you can show us your site, it will be easier to see the actual issue. Would you like to try the forum and post the necessary issue in the “Tiny Link” WordPress Plugin Section.

  • http://www.brajeshwar.com/ Brajeshwar

    @K1DF0X
    It works for me on both WordPress 2.5 and 2.5.1. If you can show us your site, it will be easier to see the actual issue. Would you like to try the forum and post the necessary issue in the “Tiny Link” WordPress Plugin Section.

  • http://richardxthripp.thripp.com/ Richard X. Thripp

    This is a great idea! I took the idea further with Tweet This, which caches the shortened URLs so they aren’t fetched on every page load, and taps right into Twitter’s API so your readers don’t have to copy and paste.

    Twitter has an API where anything that appears after the equal sign in the URL http://twitter.com/home/?status= appears in the post box. You may want to mention it in your description; you could easily use something like

    <?php echo ‘<a href=”http://twitter.com/home/?status=’ . TinyLink() . ‘” title=”Post to Twitter”>’ . TinyLink() . ‘</a>’; ?>

    to do that.

  • http://richardxthripp.thripp.com/ Richard X. Thripp

    This is a great idea! I took the idea further with Tweet This, which caches the shortened URLs so they aren’t fetched on every page load, and taps right into Twitter’s API so your readers don’t have to copy and paste.

    Twitter has an API where anything that appears after the equal sign in the URL http://twitter.com/home/?status= appears in the post box. You may want to mention it in your description; you could easily use something like

    <?php echo ‘<a href=”http://twitter.com/home/?status=’ . TinyLink() . ‘” title=”Post to Twitter”>’ . TinyLink() . ‘</a>’; ?>

    to do that.

  • Mike

    Any future development planned for this plugin?

  • Mike

    Any future development planned for this plugin?

  • http://deuts.net deuts

    Then why not use the ugly permalink in wordpress then?

  • http://deuts.net deuts

    Then why not use the ugly permalink in wordpress then?

  • http://www.emetaheret.org.il Niv

    This is exactly what I was looking for!!!
    My links are in hebrew and I needed a way to make them short for e-mail purposes.

    I hope it will work on wordpress 2.8.5

    Thank you very much

  • http://www.emetaheret.org.il Niv

    This is exactly what I was looking for!!!
    My links are in hebrew and I needed a way to make them short for e-mail purposes.

    I hope it will work on wordpress 2.8.5

    Thank you very much

blog comments powered by Disqus

Sidenotes

Quick notes, scribbles, somehow related to this website and to what I do. Or perhaps I'm just plain lazy to make them into a full article.

12 Hottest Geek Girls on Twitter

So, you have seen the 12 Hottest Geek Girls (via Digg). However, they forgot to link them to their Twitter profiles so you can follow them. Well, here they are -- the 12 Hottest Geek Girls ...13th Oct, 2009

Great Indian Developer Summit 2009

I got a Press Release of the upcoming GIDS '09 and here is an excerpt. The summit's program covers Java, REST, Unit testing, Groovy, Spring, Struts 2.0, SOA, Cloud Computing, Web Services, JRuby, RoR, Ruby, JVM, ...21st Jan, 2009

The flourishing gun market in Pakistan

VICE Travel: Darra, Pakistanby Top-Notch112 (Via: Deep Green Crystals) 20th Jan, 2009

Angry Ringtone for iPhone and others

[audio:http://audio.brajeshwar.com/angry-ring-ring.mp3] The ANGRY RINGTONE for iPhone. (Click the PLAY button above!) Download * iPhone Ringtone (.m4r) * MP3 Ringtone (.mp3) * Zipped (both .m4r and .mp3) To use it as an iPhone Ringtone; just double click the file "angry-ring-ring.m4r" and it ...15th Jan, 2009

IIM Ahmedabad's Leverage 2009

Leverage, the Venture Capital and Private Equity Club of IIM Ahmedabad and the Centre for Innovation Incubation and Entrepreneurship bring to you the 1st edition of the Venture Capital and Private Equity Conference on the ...12th Jan, 2009

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • Downloads All downloads, Free and Open Source.
  • ActionScript 3.0 Reference Flash/Flex ActionScript 3.0 Reference.
  • AS 2.0 Reference Reference for ActionScript 2.0 Programming Language used in Flash. Primarily stashed here for my own personal reference.
  • Ode to Apple Dedicated to Apple – Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.
  • Not Safe for Work Ever clicked a link and felt embarrassed with the content in front of your co-workers? Ever caught unaware because the funny link your friend sent was a little beyond funny? Let’s minimize that with NSWF.
  • o! Just Me Of colorful cultures, entertainment, media, life hacks, music, books and movies from hollywood & bollywood.

Download free Brajeshwar Wordpress Theme

Brajeshwar

Brajeshwar I firmly believe in keeping things simple, easy for users and I envison pushing the technical envelop time and again for the betterment of viable commercial and practical applications. More about me.

Photos

More photos on Flickr

Member of 9rules Network

Since its inception on 11th June, 2001, "Brajeshwar" has 996 Articles and 9,554 comments, contained within 17 categories and 1,642 tags.