in Technology

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

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.

29 Comments

  1. @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.

  2. @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.

  3. 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.

  4. 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.

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

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

  7. @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.

  8. @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.

  9. 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.

  10. 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.

  11. @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.

  12. @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.

  13. 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.

  14. 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.

  15. 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

  16. 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

Comments are closed.

Webmentions

  • Easy way to let people Twitter your blog posts - TinyURL plugin usable for tweets! Mar 27, 2012

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

  • Amusons nous avec TinyURL | Korben's Blog Mar 27, 2012

    [...] 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 [...]

  • Techno Life @ tothepc.com » Blog Archive » WP Plugin: Create TinyURL link for posts Mar 27, 2012

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

  • Tiny Link | わーどぷれすっ! Mar 27, 2012

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

  • Nico Nemil | Filipino Web Developer | Pinoy Web Designer | Intermediate Graphics Artist » WordPress Plugin Releases for 8/18 Mar 27, 2012

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

  • Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 8/18 Mar 27, 2012

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