wp_shortcode Learn more text link

Shortcode for Learn more…

//[learnMore link=”#” title=”Learn More”]
function learnMore($atts, $content = null){
extract(shortcode_atts(array(
‘link’ => ‘#’,
‘title’ => ‘Click Here To Learn More’
), $atts));

$code = ‘<em style=”font:italic bold 14px Georgia,Serif;”><a href=”‘. $link .'” title=”‘. $title .'” style=”white-space:nowrap;color: #1a5030; text-decoration: none;”>learn more…</a></em>’;
return $code;
}
add_shortcode(‘learnMore’, ‘learnMore’);

Posted October 18, 2011 by Qingli in My blog

%d bloggers like this: