Title: Automatically convert links
Last modified: August 21, 2016

---

# Automatically convert links

 *  [pimschaaf](https://wordpress.org/support/users/pimschaaf/)
 * (@pimschaaf)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/automatically-convert-links/)
 * For the Multi Twitter **widget**.
 * I’m not sure what the option ‘Automatically convert links’ is supposed to do.
   Turning it off or on did not seems to change anything. I found it more useful
   to replace the line that conditionally does the link converting as follows:
 * Replaced:
    **widget.php:141**: `$tweet = preg_replace('#(^|[\n ])(([\w]+?://[\
   w\#$%&~.\-;:=,?@\[\]+]*)(/[\w\#$%&~/.\-;:=,?@\[\]+]*)?)#is', '\\1\\2', $tweet);`
 * with:
    **widget.php:141**: `$tweet = preg_replace('#(^|[\n ])(([\w]+?://[\w\#
   $%&~.\-;:=,?@\[\]+]*)(/[\w\#$%&~/.\-;:=,?@\[\]+]*)?)#is', '<a target="_blank"
   href="${0}">${0}</a>', $tweet);`
 * With this change links become proper links.
 * _Note the \_blank target which I also found useful on the reply and hashtag links.
   For this I added this attribute/value on line 130 and 135 of widget.php too._
 * [http://wordpress.org/extend/plugins/multi-twitter-widget/](http://wordpress.org/extend/plugins/multi-twitter-widget/)

The topic ‘Automatically convert links’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/multi-twitter-widget.svg)
 * [Multi Twitter Stream](https://wordpress.org/plugins/multi-twitter-widget/)
 * [Support Threads](https://wordpress.org/support/plugin/multi-twitter-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/multi-twitter-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multi-twitter-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multi-twitter-widget/reviews/)

## Tags

 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 0 replies
 * 1 participant
 * Last reply from: [pimschaaf](https://wordpress.org/support/users/pimschaaf/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/automatically-convert-links/)
 * Status: not resolved