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/

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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