Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

It appears that (Twitter) shortened links are not auto-hyperlinked whilst non-shortened links are.

Is there a patch to make all links hyperlinked - therefore clickable?

E.g. http://cl.ly/image/3B2S3z472n0U

http://wordpress.org/plugins/twitter-tools/

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Never used this plugin. WordPress has a function called make_clickable() which might help you.

Example:

$string = "This is a long text that contains some links like http://www.wordpress.org and http://www.wordpress.com .";
echo make_clickable($string); 

Output:

This is a long text that contains some links like <a href="http://www.wordpress.org" rel="nofollow">http://www.wordpress.org</a> and <a href="http://www.wordpress.com" rel="nofollow">http://www.wordpress.com</a> .
share|improve this answer
    
Brilliant.I altered twitter-tools/views/tweet.php line 8 from 'echo wptexturize($content);' to 'echo wptexturize(make_clickable($content));' –  Chris Aug 21 '13 at 8:33
    
Be aware that you'll lose modifications if you update the plugin. –  RRikesh Aug 21 '13 at 9:05
    
I know, but until an official update is released not much I an do! –  Chris Aug 21 '13 at 14:46
    
You can propose the plugin author to add this option :) –  RRikesh Aug 22 '13 at 5:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.