0

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/

1 Answer 1

0

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> .
4
  • Brilliant.I altered twitter-tools/views/tweet.php line 8 from 'echo wptexturize($content);' to 'echo wptexturize(make_clickable($content));'
    – Chris
    Commented Aug 21, 2013 at 8:33
  • Be aware that you'll lose modifications if you update the plugin.
    – RRikesh
    Commented Aug 21, 2013 at 9:05
  • I know, but until an official update is released not much I an do!
    – Chris
    Commented Aug 21, 2013 at 14:46
  • You can propose the plugin author to add this option :)
    – RRikesh
    Commented Aug 22, 2013 at 5:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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