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
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.
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
There is a plugin here- http://wordpress.org/extend/plugins/auto-hyperlink-urls/ but it doesn't quite work with WP 2.8
The answer has always been here! http://codex.wordpress.org/Function_Reference/make_clickable
<?php make_clickable( $ret ) ?>
No need for plugins.
GM
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
yes.. how to use it in the posts?