Forums

Convert Text Link to Clickable Hyperlink (8 posts)

  1. onlytenbucks
    Member
    Posted 2 years ago #

    Hi

    a while back i searched and found a bit of code, but i cannot find it now.

    On my posts i can type in my url http://www.mydomain.com as a text url
    and this piece of code converted my text urls into clickable hyperlinks, i edited the template and put the code in and it worked side wide.

    Can someone point me in the right direction with it.

    Thanks

    James

  2. coffear
    Member
    Posted 2 years ago #

    in all honesty doing it as a plugin would be a better idea. If you do it in the template it would need to do it every time the page loads, if you do it as a plugin it could be made to run the code only when you post a story.

  3. onlytenbucks
    Member
    Posted 2 years ago #

    Hi coffear

    Thanks for your reply, do you know of a good plugin for it, ive been searching and came across a few but not the idea im after?

    Again Thank you

    James

  4. gm22
    Member
    Posted 2 years ago #

    There is a plugin here- http://wordpress.org/extend/plugins/auto-hyperlink-urls/ but it doesn't quite work with WP 2.8

  5. gm22
    Member
    Posted 2 years ago #

    There is another one. It works quite well. http://www.semiologic.com/software/autolink-uri/

    GM

  6. gm22
    Member
    Posted 2 years ago #

    The answer has always been here! http://codex.wordpress.org/Function_Reference/make_clickable

    <?php make_clickable( $ret ) ?>

    No need for plugins.

    GM

  7. unseenmortal
    Member
    Posted 2 years ago #

    How do I use the <?php make_clickable( $ret ) ?>

    Where do I have to place it? I want my links on my post to be clickable w/o doing much html. Thanks

  8. gustao
    Member
    Posted 2 years ago #

    yes.. how to use it in the posts?

Topic Closed

This topic has been closed to new replies.

About this Topic