function jk_WPSCEX_add_message( $atts )
{
$output="<a href="" . $atts['link'] . '">' . $atts['text'] . '</a>';
return $output;
}
using the above function shortcode is generated in the form of [jk link="http://jaskokoyn.com" text="Like me on Facebook"]
OR
For Enclosed type of shortcode:
function jk_WPSCEX_add_message( $atts, $content = null )
{
$output="<a href="" . $atts['link'] . '">' . $content . '</a>';
return $output;
}
shortcode to be used is [jk link="http://jaskokoyn.com"]Like us on Facebook[/jk]