A code snippet from the Tuts Plus →
function link($atts, $content = null) {
extract(shortcode_atts(array(
"to" => 'http://net.tutsplus.com'
), $atts));
return '<a href="'.$to.'">'.$content.'</a>';
}
Question →
How to reproduce "$to"
in the shortcode?
I tried this →
[link $to= "https://wordpress.stackexchange.com/"]
But this didnt worked.