Thank you Martin for an absolutely fabulous plugin, but it is crucial that the links open in a new window.
Thank you CrouchingBruin I changed:
`$displayurl = substr($displayurl,0,$urllength).”…”;
endif;
$after[] = “<a href='”.$url->url.”‘ title='”.$url->expanded_url.”‘”.$targetvalue.”>”.esc_html($displayurl).”</a>”;
endforeach;`
to:
$displayurl = substr($displayurl,0,$urllength)."…";
endif;
$after[] = "<a target='_blank' href='".$url->url."' title='".$url->expanded_url."'".$targetvalue.">".esc_html($displayurl)."</a>";
endforeach;
which works and now opens every link that is external to twitter in a new window except for twitter pics, which I cannot find a way to change as every single other instance of href is preceded by target=’_blank’.
If you have a way of changing the twitter pics, let me know. Thanks!
https://elated.co.za